Files
discordeno/src/handlers/integrations/INTEGRATION_CREATE.ts
T
2021-05-05 20:06:32 +02:00

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,
);
}