mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
import { eventHandlers } from "../../bot.ts";
|
|
import type { DiscordGatewayPayload } from "../../types/gateway/gateway_payload.ts";
|
|
import type {
|
|
IntegrationCreateUpdate,
|
|
} from "../../types/integrations/integration_create_update.ts";
|
|
|
|
export function handleIntegrationCreate(
|
|
data: DiscordGatewayPayload,
|
|
) {
|
|
eventHandlers.integrationCreate?.(
|
|
data.d as IntegrationCreateUpdate,
|
|
);
|
|
}
|