discord-bot/cmd/example.ts

9 lines
No EOL
384 B
TypeScript

import { CacheType, CommandInteraction, Events, Interaction, SlashCommandBuilder } from "discord.js";
export const data = new SlashCommandBuilder()
export const execute = async (interaction: CommandInteraction): Promise<void> => {}
export const on: {
[event in Events]?: (interaction: Interaction<CacheType>) => Promise<void>;
} = {}
export default [data, execute, on] as const;