From 9e57be5c4d5172e1d062eb726958cf8fae813310 Mon Sep 17 00:00:00 2001 From: Deivu Date: Tue, 7 Nov 2023 23:04:06 +0800 Subject: [PATCH] fix: remove all listeners on disconnect() --- src/guild/Connection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guild/Connection.ts b/src/guild/Connection.ts index 0855d86d..0e28f7cc 100644 --- a/src/guild/Connection.ts +++ b/src/guild/Connection.ts @@ -131,6 +131,7 @@ export class Connection extends EventEmitter { this.deafened = false; this.muted = false; this.sendVoiceUpdate(); + this.removeAllListeners(); this.state = State.DISCONNECTED; this.debug(`[Voice] -> [Node] & [Discord] : Connection Destroyed | Guild: ${this.guildId}`); }