swc/crates/swc_bundler/tests/.cache/deno/1ca0a0c4f846e6d768165adbe3e6eb0f5255aa6b.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_UPDATE.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 handleIntegrationUpdate(data: DiscordGatewayPayload) {
eventHandlers.integrationUpdate?.(data.d as IntegrationCreateUpdate);
}