mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-04 06:28:53 +00:00
Localization support
This commit is contained in:
12 files changed
+220
-34
No files matched your search
@@ -6,21 +6,24 @@ import { BaseSlashCommandInteraction } from '../../../classes/interactions';
|
||||
import { BaseSlashCommandParams, BaseSlashCommandReturnType } from '../../../types/interactionTypes';
|
||||
import { checkQueueCurrentTrack, checkQueueExists } from '../../../utils/validation/queueValidator';
|
||||
import { checkInVoiceChannel, checkSameVoiceChannel } from '../../../utils/validation/voiceChannelValidator';
|
||||
import { localizeCommand } from '../../../common/localeUtil';
|
||||
|
||||
class LyricsCommand extends BaseSlashCommandInteraction {
|
||||
constructor() {
|
||||
const data = new SlashCommandBuilder()
|
||||
.setName('lyrics')
|
||||
.setDescription('Search Genius lyrics for current or specified track.')
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName('query')
|
||||
.setDescription('Search query by text or URL.')
|
||||
.setRequired(false)
|
||||
.setMinLength(2)
|
||||
.setMaxLength(500)
|
||||
.setAutocomplete(true)
|
||||
);
|
||||
const data = localizeCommand(
|
||||
new SlashCommandBuilder()
|
||||
.setName('lyrics')
|
||||
// .setDescription('Search Genius lyrics for current or specified track.')
|
||||
.addStringOption((option) =>
|
||||
option
|
||||
.setName('query')
|
||||
// .setDescription('Search query by text or URL.')
|
||||
.setRequired(false)
|
||||
.setMinLength(2)
|
||||
.setMaxLength(500)
|
||||
.setAutocomplete(true)
|
||||
)
|
||||
);
|
||||
super(data);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user