From 79a86478924cef4fad50841f5f334d965eef037b Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Sat, 10 Sep 2022 18:27:15 +0500 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D0=B8=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/Music/play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/Music/play.js b/commands/Music/play.js index 24933995..6d5c31f9 100644 --- a/commands/Music/play.js +++ b/commands/Music/play.js @@ -52,7 +52,7 @@ class Play extends BaseCommand { if (search) { const found = search.map(track => new Track(client.player, { title: track.title, - duration: Util.buildTimeCode(Util.parseMS(track.durationInSec * 1000)), + duration: Util.buildTimeCode(Util.parseMS(track.durationInSec * 1000)), thumbnail: track.thumbnails[0].url || "https://cdn.discordapp.com/attachments/708642702602010684/1012418217660121089/noimage.png", views: track.views, author: track.channel.name, @@ -71,7 +71,7 @@ class Play extends BaseCommand { }); if (!searchResult.tracks[0] || !searchResult) - return interaction.editReply({ content: interaction.translate("music/play:NO_RESULT", { query }) }); + return interaction.editReply({ content: interaction.translate("music/play:NO_RESULT", { query, error: "Unknown Error" }) }); } } catch (error) { return interaction.editReply({