discord-temp-channels
discord-temp-channels copied to clipboard
GUILD_VOICE_STATES intent is required to use this package!
I'm receiving this error..
Code:
This will be fixed. In the mean time, add Discord.Intents.GUILD_VOICE_STATES to the array
This will be fixed. In the mean time, add Discord.Intents.GUILD_VOICE_STATES to the array
You mean like this?
const client = new Discord.Client({ partials: ["REACTION", "MESSAGE"], ws: { intents: new Discord.Intents(Discord.Intents.GUILD_VOICE_STATES) } });
new Discord.Client({ intents: [Discord.Intents.GUILD_VOICE_STATES, Discord.Intents.ALL] })
new Discord.Client({ intents: [Discord.Intents.GUILD_VOICE_STATES, Discord.Intents.ALL] })
Same throw error here.
same error not fixed
Same error
Hey there!
For all of you who might have trouble, please try to check all the following boxes and make sure everything's alright:
- [ ] you use node.js v16.6.0 or newer
- [ ] you use discord.js v13 or newer (latest is 13.1.0 at time of writing)
- [ ] you don't use
Discord.Intents.ALL
as it has been removed from the API - [ ] you set the intents using
ClientOptions#intents
, notClientOptions#ws
I can testify that the current implementation is properly working and that this issue is due to a development mistake. The following initialization works:
const client = new Client({ intents: [Intents.FLAGS.GUILD_VOICE_STATES] });
For the record: