fix(Player): add intents checking
This commit is contained in:
parent
5780e6e6f4
commit
615c3ad82f
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Player extends EventEmitter<PlayerEvents> {
|
||||||
*/
|
*/
|
||||||
this.client = client;
|
this.client = client;
|
||||||
|
|
||||||
if (new Intents(this.client.options.intents).has(Intents.FLAGS.GUILD_VOICE_STATES)) {
|
if (!(new Intents(this.client.options.intents).has(Intents.FLAGS.GUILD_VOICE_STATES))) {
|
||||||
throw new PlayerError('client is missing "GUILD_VOICE_STATES" intent');
|
throw new PlayerError('client is missing "GUILD_VOICE_STATES" intent');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue