swc/bundler/tests/.cache/deno/b2f3133f21ac040d595cd74882ca22cf24799b47.ts

11 lines
555 B
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/handlers/commands/APPLICATION_COMMAND_CREATE.ts
import { eventHandlers } from "../../bot.ts";
import type { DiscordGatewayPayload } from "../../types/gateway/gateway_payload.ts";
import type { ApplicationCommandCreateUpdateDelete } from "../../types/interactions/commands/application_command_create_update_delete.ts";
export function handleApplicationCommandCreate(data: DiscordGatewayPayload) {
eventHandlers.applicationCommandCreate?.(data.d as ApplicationCommandCreateUpdateDelete);
}