From 615c3ad82f8d25695e8bdfdda980821375175532 Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:49:35 +0545 Subject: [PATCH] fix(Player): add intents checking --- src/Player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.ts b/src/Player.ts index b7b81d4..6f01038 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -46,7 +46,7 @@ class Player extends EventEmitter { */ 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'); }