diff options
Diffstat (limited to 'Commands/next.js')
| -rw-r--r-- | Commands/next.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Commands/next.js b/Commands/next.js index 082bf25..c99fd6b 100644 --- a/Commands/next.js +++ b/Commands/next.js @@ -21,20 +21,21 @@ import { SlashCommandBuilder } from 'discord.js'; import { voteSkip } from '../Utilities/Voting.js'; - +import i18next from '../Utilities/i18n.js'; +const t = i18next.t; export default { data: new SlashCommandBuilder() .setName('next') .setDescription('Goes to next music') - /* .addSubcommand(subcommand => + .addSubcommand(subcommand => subcommand.setName('vote') - .setDescription('Voting to skip this audio track')) */ + .setDescription('Voting to skip this audio track')) .addSubcommand(subcommand => subcommand.setName('force') .setDescription('Forces skip this audio track')), async execute(interaction, bot) { - if (!interaction.member.voice.channel) return await interaction.reply({ content: 'You need to be in a voice channel to use this command.', ephemeral: true }); + if (!interaction.member.voice.channel) return await interaction.reply({ content: t('voicePermission'), ephemeral: true }); await voteSkip(interaction, bot); } }; |
