mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
фиксики
This commit is contained in:
parent
78d41c6343
commit
79a8647892
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue