diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-13 22:35:50 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-13 23:39:19 -0500 |
| commit | 72ea1090753ccca3c5573801ae0b0a4439e1b736 (patch) | |
| tree | bb3ff6e00572d111ddc1af0a864df90208c63840 /Commands/previous.js | |
| parent | 3d4f5061d402b44218cdfd351f39317d5f8ecd11 (diff) | |
| download | DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.tar.gz DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.tar.bz2 DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.zip | |
Fully working i18n (hopefully); Docker on walkthrough
Diffstat (limited to 'Commands/previous.js')
| -rw-r--r-- | Commands/previous.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Commands/previous.js b/Commands/previous.js index aa732b2..c5a45b5 100644 --- a/Commands/previous.js +++ b/Commands/previous.js @@ -21,7 +21,9 @@ 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') @@ -33,7 +35,7 @@ export default { 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); } }; |
