Androz2091 / discord-music-bot

The perfect music bot for your Discord server! 🤘
238 stars 128 forks source link

Bot does not work anymore when installed fresh #87

Closed samusaran closed 1 year ago

samusaran commented 1 year ago

The bot just logs on startup

 RangeError [BitFieldInvalid]: Invalid bitfield flag or number: GUILDS.
     at Function.resolve (/home/mordack/discord-music-bot/node_modules/discord.js/src/util/BitField.js:168:11)
     at /home/mordack/discord-music-bot/node_modules/discord.js/src/util/BitField.js:163:54
     at Array.map (<anonymous>)
     at Function.resolve (/home/mordack/discord-music-bot/node_modules/discord.js/src/util/BitField.js:163:40)
     at new BitField (/home/mordack/discord-music-bot/node_modules/discord.js/src/util/BitField.js:33:38)
     at new IntentsBitField (/home/mordack/discord-music-bot/node_modules/discord.js/src/util/IntentsBitField.js:9:1)
     at Client._validateOptions (/home/mordack/discord-music-bot/node_modules/discord.js/src/client/Client.js:491:25)
     at new Client (/home/mordack/discord-music-bot/node_modules/discord.js/src/client/Client.js:78:10)
     at Object.<anonymous> (/home/mordack/discord-music-bot/index.js:11:16)
     at Module._compile (node:internal/modules/cjs/loader:1101:14) {
   code: 'BitFieldInvalid'
 }

and does not work anymore. This is after a clean install. It worked before on the same machine.

RappyTV commented 1 year ago

cannot reproduce. maybe installed wrong discord.js version?

samusaran commented 1 year ago

I've updated the discord-player to v6 that required an higher version of discord.js.

I've fixed it and i plan to send a pull request to the report to update the bot.