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
});
}
}
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
});
}
}