Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUILD_VOICE_STATES intent is required to use this package! #44

Open
techrlz18 opened this issue Aug 8, 2021 · 7 comments
Open

GUILD_VOICE_STATES intent is required to use this package! #44

techrlz18 opened this issue Aug 8, 2021 · 7 comments

Comments

@techrlz18
Copy link

I'm receiving this error..

image

Code:

image

@Androz2091
Copy link
Owner

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

@techrlz18
Copy link
Author

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

@Androz2091
Copy link
Owner

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

@techrlz18
Copy link
Author

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

Same throw error here.

@itssigron
Copy link

same error not fixed

@Gercekefsane
Copy link

Same error

@HunteRoi
Copy link

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants