mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
Если ошибка при поиске трека возвращаем её а не молчим
This commit is contained in:
parent
45a5f6b2e8
commit
78d41c6343
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,9 @@ class Play extends BaseCommand {
|
|||
searchResult = await client.player.search(query, {
|
||||
requestedBy: interaction.user
|
||||
});
|
||||
|
||||
if (!searchResult.tracks[0] || !searchResult)
|
||||
return interaction.editReply({ content: interaction.translate("music/play:NO_RESULT", { query }) });
|
||||
}
|
||||
} catch (error) {
|
||||
return interaction.editReply({
|
||||
|
|
Loading…
Reference in a new issue