Androz2091 / discord-player

🎧 Complete framework to simplify the implementation of music commands using discord.js v14
https://discord-player.js.org/
MIT License
589 stars 192 forks source link

i have this bug when my bot start playing a song #1889

Closed zrSadek closed 5 months ago

zrSadek commented 6 months ago

image

const channel = message.member.voice.channel;

    const { track } = await client.player.play(channel, args.join(" "), {
        nodeOptions: {
            // nodeOptions are the options for guild node (aka your queue in simple word)
            metadata: message // we can access this metadata object using queue.metadata later on
        }
    });
    return message.reply(`**${track.title}** enqueued!`);
jermorg commented 5 months ago

I have the same problem, did you manage to solve it?

needhamgary commented 5 months ago

@jermorg @zrSadek out of curiosity, do you guys bots have guild # permissions (CONNECT and SPEAK)? If so, please ensure the bot has access to the channel that the song requester is connected to. If this doesn't help, try reinviting the bot to the server with default permissions of at least the 2 I mentioned and SEND_MESSAGES. Hope this helps

twlite commented 5 months ago

Use something else than youtube-ext

jermorg commented 5 months ago

@zrSadek I found out what the problem is, for some reason YouTubeExtractor and SpotifyExtractor give this error, I just disabled them like this:

await player.extractors.loadDefault((ext) => ext !== 'YouTubeExtractor' && ext !== 'SpotifyExtractor');

and that's it.

zrSadek commented 5 months ago

okay ty everyone