© 2026 Hedgehog Software, LLC
import { Command } from '@sapphire/framework'; import { ApplicationCommandType } from 'discord.js'; export class RequestDeleteCommand extends Command { public constructor(context: Command.Context, options: Command.Options) { super(context, { ...options, description: 'Request message be deleted.' }); } public override registerApplicationCommands(registry: Command.Registry) { registry.registerContextMenuCommand((builder) => builder // .setName('Request Delete') .setType(ApplicationCommandType.Message) ); } public async contextMenuRun(interaction: Command.ContextMenuCommandInteraction) { return interaction.reply('Pong'); } }
Join the Discord to ask follow-up questions and connect with the community
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,286 Members