mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
14 lines
441 B
TypeScript
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,
|
|
);
|
|
}
|