ยฉ 2026 Hedgehog Software, LLC
import { Command, type ChatInputCommand } from '@sapphire/framework'; import { applyLocalizedBuilder } from '@sapphire/plugin-i18next'; import { PermissionFlagsBits } from 'discord-api-types/v10'; export class UserCommand extends Command { public override registerApplicationCommands(registry: ChatInputCommand.Registry) { registry.registerChatInputCommand((builder) => applyLocalizedBuilder(builder, 'setup:CommandName', 'setup:CommandDescription').setDefaultMemberPermissions(PermissionFlagsBits.Administrator) ); } public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) { await interaction.reply({ content: `...`, ephemeral: true }); } }
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