mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
14 lines
388 B
TypeScript
14 lines
388 B
TypeScript
import { eventHandlers } from "../../bot.ts";
|
|
import { cacheHandlers } from "../../cache.ts";
|
|
|
|
export async function handleGuildIntegrationsUpdate(
|
|
data: DiscordGatewayPayload,
|
|
) {
|
|
const payload = data.d as DiscordGuildIntegrationsUpdate;
|
|
|
|
const guild = await cacheHandlers.get("guilds", payload.guild_id);
|
|
if (!guild) return;
|
|
|
|
eventHandlers.guildIntegrationsUpdate?.(guild);
|
|
}
|