From 72ea1090753ccca3c5573801ae0b0a4439e1b736 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 13 Feb 2024 22:35:50 -0500 Subject: Fully working i18n (hopefully); Docker on walkthrough --- Commands/next.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Commands/next.js') diff --git a/Commands/next.js b/Commands/next.js index f082c89..c99fd6b 100644 --- a/Commands/next.js +++ b/Commands/next.js @@ -21,7 +21,8 @@ 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') @@ -34,7 +35,7 @@ export default { .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); } }; -- cgit v1.2.3