discord_js_1.IntentsBitField is not a constructor
2022-09-11 23:35:17 - info [app.js]: Initializing... /home/Bot/node_modules/discord-player/dist/Player.js:46 if (this.client?.options?.intents && !new discord_js_1.IntentsBitField(this.client?.options?.intents).has(discord_js_1.IntentsBitField.Flags.GuildVoiceStates)) { ^
TypeError: discord_js_1.IntentsBitField is not a constructor
at new Player (/home/Bot/node_modules/discord-player/dist/Player.js:46:47)
at new Client (/home/Bot/src/Client.js:53:23)
at Object.
Changing the discord-player package version from 5.3.2 to 3.0.0 in /package.json seems to have fixed the issue.
Changing the
discord-playerpackage version from 5.3.2 to 3.0.0 in/package.jsonseems to have fixed the issue.
This was the issue, discord-player was not compatible with discord.js 13.
The bot has been updated to DiscordJS 14 with update dd9442e. And this issue should no longer exist.