From c11609795445953174a3077afd05b5882eed4953 Mon Sep 17 00:00:00 2001 From: DevAndromeda <46562212+DevAndromeda@users.noreply.github.com> Date: Mon, 9 Aug 2021 18:49:58 +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 6f01038..a6cd5d0 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'); }