Example Usage
@SlashCommand(new SlashCommandBuilder().setName("ping").setDescription("pong!"))async ping(ctx: CommandInteraction) { await ctx.reply("pong!");} Copy
@SlashCommand(new SlashCommandBuilder().setName("ping").setDescription("pong!"))async ping(ctx: CommandInteraction) { await ctx.reply("pong!");}
Note: If syntax highlight looks broken, blame your IDE. You may look at harunon.js to see this in action
Optional
Automatically add Ephemeral Options to your command
Your method should accept 2 arguments (ctx, ephemeral)
Example Usage
Note: If syntax highlight looks broken, blame your IDE. You may look at harunon.js to see this in action