From b04702ba4f040119a67cd873c4d2ba59da5996a5 Mon Sep 17 00:00:00 2001 From: Hazmi35 Date: Sun, 24 Oct 2021 15:05:56 +0700 Subject: [PATCH] fix(VoiceStateUpdateEvent): Don't return on deleted voice channel Do not return on deleted voice channel, as the timeout will be cleared by voice channel kicked handler. --- src/events/VoiceStateUpdateEvent.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/events/VoiceStateUpdateEvent.ts b/src/events/VoiceStateUpdateEvent.ts index e43f4c60..a3fda304 100644 --- a/src/events/VoiceStateUpdateEvent.ts +++ b/src/events/VoiceStateUpdateEvent.ts @@ -37,9 +37,6 @@ export class VoiceStateUpdateEvent extends BaseEvent { } } - // Don't do anything if voice channel is deleted. - if (newVC === null) return undefined; - if (newState.mute !== oldState.mute || newState.deaf !== oldState.deaf) return undefined; // TODO: Handle all listeners deaf & bot muted event? // Handle when the bot is moved to another voice channel