mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
Merge pull request #330 from discordeno/patch2
fix: replace incorrect check for GUILD_UPDATE controller
This commit is contained in:
@@ -65,7 +65,7 @@ export async function handleInternalGuildDelete(data: DiscordPayload) {
|
||||
}
|
||||
|
||||
export async function handleInternalGuildUpdate(data: DiscordPayload) {
|
||||
if (data.t !== "GUILD_CREATE") return;
|
||||
if (data.t !== "GUILD_UPDATE") return;
|
||||
|
||||
const payload = data.d as UpdateGuildPayload;
|
||||
const cachedGuild = await cacheHandlers.get("guilds", payload.id);
|
||||
|
||||
Reference in New Issue
Block a user