#Cannot Hear Bot's Audio (Distube Library)

5 messages · Page 1 of 1 (latest)

vivid tundra
#

Everything works fine in the below code as intended. Bot Joins Voice Channel and displays the name of song that is going to get played. Bot also starts playing song as I can see green circle around it but I cannot hear anything. Please help on how to fix it. Here is the given code:

const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildVoiceStates] });
const { DisTube } = require('distube');


client.distube = new DisTube(client, {
    leaveOnStop: false,
    emitNewSongOnly: true,
    emitAddSongWhenCreatingQueue: false,
    emitAddListWhenCreatingQueue: false,
  })

client.on('messageCreate', (message) => {
    if(message.author.bot) return;
    
    if(message.content === "joinvc"){
      

        client.distube.play(message.member.voice.channel, "Die Hard" , {
            member: message.member,
            textChannel: message.channel,
            message
        })

    }
})


client.distube.on("playSong", (queue, song) => {
    queue.textChannel.send("NOW PLAYING : " + song.name)
})



client.login(' ')
snow sinewBOT
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

uncut dagger
#

this is not distube support
#useful-servers

vivid tundra
#

O

#

But do you have any idea how to fix it?