mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
12 lines
455 B
TypeScript
12 lines
455 B
TypeScript
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 handleApplicationCommandDelete(data: DiscordGatewayPayload) {
|
|
eventHandlers.applicationCommandDelete?.(
|
|
data.d as ApplicationCommandCreateUpdateDelete,
|
|
);
|
|
}
|