mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 10:49:20 +00:00
Added empty result error message
This commit is contained in:
@@ -420,7 +420,15 @@ export default class Play extends DiscordModule {
|
||||
} else {
|
||||
let result = await DiscordMusicPlayer.searchYouTubeByQuery(query);
|
||||
|
||||
if (!result) return;
|
||||
if (!result) {
|
||||
// TODO: Send not found embed
|
||||
await sendHybridInteractionMessageResponse(
|
||||
data,
|
||||
{ embeds: [EMBEDS.LOOKUP_ERROR(data, locale, new Error('Cannot find that song'))] },
|
||||
true
|
||||
);
|
||||
return;
|
||||
}
|
||||
instance.addTrackToQueue(result[0]);
|
||||
|
||||
if (result.length > 1) {
|
||||
|
||||
Reference in New Issue
Block a user