mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-04 01:40:08 +00:00
fmt
This commit is contained in:
4
plugins/cache/src/dispatchRequirements.ts
vendored
4
plugins/cache/src/dispatchRequirements.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import type { Guild, Shard, Bot, DiscordGatewayPayload } from "../deps.ts";
|
||||
import type { Bot, DiscordGatewayPayload, Guild, Shard } from "../deps.ts";
|
||||
import { BotWithCache } from "./addCacheCollections.ts";
|
||||
|
||||
const processing = new Set<bigint>();
|
||||
@@ -6,7 +6,7 @@ const processing = new Set<bigint>();
|
||||
export async function dispatchRequirements<B extends Bot>(
|
||||
bot: BotWithCache<B>,
|
||||
data: DiscordGatewayPayload,
|
||||
shard: Shard
|
||||
shard: Shard,
|
||||
) {
|
||||
// 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