From 075d19607f0a1bd2f4e3471a2f1966c6cf41e508 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Fri, 9 Apr 2021 14:20:18 +0200 Subject: [PATCH] :bug: fix event listener --- src/listener/listener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listener/listener.ts b/src/listener/listener.ts index f0f9d3e3..97b19c8f 100644 --- a/src/listener/listener.ts +++ b/src/listener/listener.ts @@ -59,7 +59,7 @@ export async function dispatch(this: WebSocket, document: Event, { eventStream, guilds.push(document.guild_id); eventStream.changeStream(getPipeline.call(this, guilds)); } else if (document.event === "GUILD_DELETE") { - guilds.remove(document.guild); + guilds.remove(document.guild_id); eventStream.changeStream(getPipeline.call(this, guilds)); }