From b571cc3ae63c3d3d714008e2888907206eddbdf5 Mon Sep 17 00:00:00 2001 From: Waleed <32379213+WallyThePenguin@users.noreply.github.com> Date: Thu, 3 Dec 2020 12:04:17 -0500 Subject: [PATCH] Fixing Bug on line 40 --- src/controllers/guilds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/guilds.ts b/src/controllers/guilds.ts index 61a2777c6..306ebedc5 100644 --- a/src/controllers/guilds.ts +++ b/src/controllers/guilds.ts @@ -37,7 +37,7 @@ export async function handleInternalGuildCreate( } export async function handleInternalGuildDelete(data: DiscordPayload) { - if (data.t !== "GUILD_CREATE") return; + if (data.t !== "GUILD_DELETE") return; const payload = data.d as GuildDeletePayload; cacheHandlers.forEach("messages", (message) => {