mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
8654aeded5
* refactor: rename controllers to handlers and handlers to helpers * fmt
11 lines
320 B
TypeScript
11 lines
320 B
TypeScript
import { eventHandlers } from "../../bot.ts";
|
|
import { DiscordPayload, WebhookUpdatePayload } from "../../types/mod.ts";
|
|
|
|
export function handleWebhooksUpdate(data: DiscordPayload) {
|
|
const options = data.d as WebhookUpdatePayload;
|
|
eventHandlers.webhooksUpdate?.(
|
|
options.channel_id,
|
|
options.guild_id,
|
|
);
|
|
}
|