You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: discord_js_1.IntentsBitField is not a constructor
at new Player (D:\el musica\node_modules\discord-player\dist\Player.js:50:47)
at Object. (D:\el musica\index.js:24:17)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.12.1`
The text was updated successfully, but these errors were encountered:
Did you change the intents to something like GatewayIntentBits.Guilds instead of "GUILDS" in your index,js
Try changing that if you haven't and make a const for it to require discord.js
I dunno how to really explain it since I don't code :^) but I'll help you if you still need
this is the console output
`PS D:\el musica> node index.js load
D:\el musica\node_modules\discord-player\dist\Player.js:50
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 (D:\el musica\node_modules\discord-player\dist\Player.js:50:47)
at Object. (D:\el musica\index.js:24:17)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.12.1`
The text was updated successfully, but these errors were encountered: