Files
discordeno/src/handlers/commands/APPLICATION_COMMAND_CREATE.ts
T
2021-04-24 23:17:11 +02:00

14 lines
441 B
TypeScript

import { eventHandlers } from "../../bot.ts";
import { DiscordGatewayPayload } from "../../types/gateway/gateway_payload.ts";
import {
ApplicationCommandCreateUpdateDelete,
} from "../../types/interactions/application_command_create_update_delete.ts";
export function handleApplicationCommandCreate(
data: DiscordGatewayPayload,
) {
eventHandlers.applicationCommandCreate?.(
data.d as ApplicationCommandCreateUpdateDelete,
);
}