aboutsummaryrefslogtreecommitdiff
path: root/Commands/previous.js
diff options
context:
space:
mode:
Diffstat (limited to 'Commands/previous.js')
-rw-r--r--Commands/previous.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/Commands/previous.js b/Commands/previous.js
index 5acca47..c5a45b5 100644
--- a/Commands/previous.js
+++ b/Commands/previous.js
@@ -21,19 +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('previous')
.setDescription('Goes to previous 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);
}
};