swc/crates/swc_bundler/tests/.cache/deno/3a2bb026159d6876ef5fecf6fb3b4bcdd2885ba7.ts
2021-11-09 20:42:49 +09:00

11 lines
487 B
TypeScript

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/handlers/integrations/INTEGRATION_CREATE.ts
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);
}