i have a issue with register a translated command..
Current code is
import { ApplyOptions } from '@sapphire/decorators';
import { applyLocalizedBuilder } from '@sapphire/plugin-i18next';
import { ChatInputCommand, Command } from '@sapphire/framework';
@ApplyOptions<Command.Options>({
description: 'ping pong'
})
export class UserCommand extends Command {
public override registerApplicationCommands(registry: ChatInputCommand.Registry) {
registry.registerChatInputCommand(
(builder) =>
applyLocalizedBuilder(builder, 'ping:CommandName', 'ping:CommandDescription')
);
}
public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
await interaction.reply({
content: 'Pong!',
ephemeral: true
});
}
}
