From cd0e096e640992c7e6bfb2f40dab5d10908ab5fb Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 30 Apr 2024 13:07:22 +0500 Subject: [PATCH] fix localization --- commands/Music/skip.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/Music/skip.js b/commands/Music/skip.js index 8fcd7a1c..5fade1db 100644 --- a/commands/Music/skip.js +++ b/commands/Music/skip.js @@ -46,18 +46,20 @@ class Skip extends BaseCommand { const position = interaction.options.getInteger("position"); if (position) { - if (position <= 0) return interaction.error("music/skipto:NO_PREV_SONG"); + if (position <= 0) return interaction.error("music/skip:NO_PREV_SONG"); if (queue.tracks.at(position - 1)) { queue.node.skipTo(queue.tracks.at(position - 1)); - interaction.success("music/skipto:SUCCESS", { + interaction.success("music/skip:SUCCESS", { track: queue.tracks.at(0).title, }); - } else return interaction.error("music/skipto:ERROR", { position }); + } else return interaction.error("music/skip:ERROR", { position }); } else { queue.node.skip(); - interaction.success("music/skip:SUCCESS"); + interaction.success("music/skip:SUCCESS", { + track: queue.tracks.at(0).title, + }); } } }