mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
12 lines
414 B
TypeScript
12 lines
414 B
TypeScript
import { eventHandlers } from "../../bot.ts";
|
|
import { DiscordGatewayPayload } from "../../types/gateway/gateway_payload.ts";
|
|
import { DiscordWebhooksUpdate } from "../../types/webhooks/webhooks_update.ts";
|
|
|
|
export function handleWebhooksUpdate(data: DiscordGatewayPayload) {
|
|
const options = data.d as DiscordWebhooksUpdate;
|
|
eventHandlers.webhooksUpdate?.(
|
|
options.channel_id,
|
|
options.guild_id,
|
|
);
|
|
}
|