mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 17:30:07 +00:00
10 lines
343 B
TypeScript
10 lines
343 B
TypeScript
import { Bot } from "../../bot.ts";
|
|
import { DiscordGatewayPayload, DiscordIntegrationCreateUpdate } from "../../types/discord.ts";
|
|
|
|
export function handleIntegrationCreate(bot: Bot, data: DiscordGatewayPayload) {
|
|
bot.events.integrationCreate(
|
|
bot,
|
|
bot.transformers.integration(bot, data.d as DiscordIntegrationCreateUpdate),
|
|
);
|
|
}
|