© 2026 Hedgehog Software, LLC
const { MessageEmbed, MessageActionRow, MessageButton, } = require(`discord.js`); const { Command } = require("@sapphire/framework"); const { Subcommand } = require('@sapphire/plugin-subcommands'); class HelpCommand extends Subcommand { constructor(context, options) { super(context, { ...options }); } registerApplicationCommands(registry) { registry.registerChatInputCommand((builder) => builder .setName("help") .setDescription("Get help on how to use bot") .setDMPermission(false) .addSubCommand(subcommand => subcommand .setName("general_commands") .setDescription("Shows list of general bot commands") ) .addSubCommand(subcommand => subcommand .setName("fun_commands") .setDescription("Shows list of fun bot commands") ) .addSubCommand(subcommand => subcommand .setName("moderation_commands") .setDescription("Shows list of moderation bot commands") ), { guildIds: ["1042213001564000298"], } ); }
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