Androz2091 / discord-temp-channels

Simple framework to facilitate the creation of a temporary voice channels system using Discord.js
108 stars 21 forks source link

GUILD_VOICE_STATES intent is required to use this package! #44

Open techrlz18 opened 3 years ago

techrlz18 commented 3 years ago

I'm receiving this error..

image

Code:

image

Androz2091 commented 3 years ago

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

techrlz18 commented 3 years ago

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 commented 3 years ago

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

techrlz18 commented 3 years ago

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

Same throw error here.

itssigron commented 3 years ago

same error not fixed

Gercekefsane commented 3 years ago

Same error

HunteRoi commented 3 years ago

Hey there!

For all of you who might have trouble, please try to check all the following boxes and make sure everything's alright:

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: