mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
Fix: dispatchRequirements
This commit is contained in:
@@ -6,8 +6,6 @@ import { SnakeCasedPropertiesDeep } from "../types/util.ts";
|
||||
const processing = new Set<bigint>();
|
||||
|
||||
export async function dispatchRequirements(bot: Bot, data: DiscordGatewayPayload, shardId: number) {
|
||||
if (!bot.isReady) return;
|
||||
|
||||
// DELETE MEANS WE DONT NEED TO FETCH. CREATE SHOULD HAVE DATA TO CACHE
|
||||
if (data.t && ["GUILD_CREATE", "GUILD_DELETE"].includes(data.t)) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user