discord-temp-channels icon indicating copy to clipboard operation
discord-temp-channels copied to clipboard

GUILD_VOICE_STATES intent is required to use this package!

Open techrlz18 opened this issue 3 years ago • 7 comments

I'm receiving this error..

image

Code:

image

techrlz18 avatar Aug 08 '21 16:08 techrlz18

This will be fixed. In the mean time, add Discord.Intents.GUILD_VOICE_STATES to the array

Androz2091 avatar Aug 08 '21 17:08 Androz2091

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) } });

techrlz18 avatar Aug 08 '21 17:08 techrlz18

new Discord.Client({ intents: [Discord.Intents.GUILD_VOICE_STATES, Discord.Intents.ALL] })

Androz2091 avatar Aug 08 '21 17:08 Androz2091

new Discord.Client({ intents: [Discord.Intents.GUILD_VOICE_STATES, Discord.Intents.ALL] })

Same throw error here.

techrlz18 avatar Aug 08 '21 18:08 techrlz18

same error not fixed

itssigron avatar Sep 05 '21 14:09 itssigron

Same error

Gercekefsane avatar Sep 10 '21 02:09 Gercekefsane

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, not ClientOptions#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:

HunteRoi avatar Sep 18 '21 18:09 HunteRoi