Transcribe command descriptions and call localize

This commit is contained in:
tacheometry committed 2023-12-15 14:42:36 +02:00
1 parent 46d1cfb008
commit 2cfab3209b
28 files changed
+578 -181

No files matched your search

+6 -6
View File
@@ -5,15 +5,15 @@ import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../typ
import { checkHistoryExists, checkQueueCurrentTrack } from '../../../utils/validation/queueValidator';
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
import { Logger } from 'pino';
import { localizeCommand } from '../../../common/localeUtil';
class BackCommand extends BaseSlashCommandInteraction {
constructor() {
const data = new SlashCommandBuilder()
.setName('back')
.setDescription('Go back to previous track or specified position in history.')
.addIntegerOption((option) =>
option.setName('position').setDescription('The position in history to go back to.').setMinValue(1)
);
const data = localizeCommand(
new SlashCommandBuilder()
.setName('back')
.addIntegerOption((option) => option.setName('position').setMinValue(1))
);
super(data);
}