Fixed search bug

This commit is contained in:
2022-02-27 17:47:13 +07:00
parent ba2b724acf
commit 108a4042e2
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -132,7 +132,7 @@ export default class Play {
//return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.MSINFO(data)] }); //return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.MSINFO(data)] });
return; return;
} }
query = args[0]; query = args.join(' ');
} }
else if (isSlashCommand) { else if (isSlashCommand) {
@@ -180,7 +180,10 @@ export default class Play {
if (!result) return; if (!result) return;
instance.addTrackToQueue(result[0]); instance.addTrackToQueue(result[0]);
if(result.length > 1) {
// TODO: Let user choose the video // TODO: Let user choose the video
}
return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.ADDED_QUEUE(data, result[0])] }); return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.ADDED_QUEUE(data, result[0])] });
} }
+1 -1
View File
@@ -79,7 +79,7 @@ export default class Search {
//return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.MSINFO(data)] }); //return await sendMessageOrInteractionResponse(data, { embeds: [EMBEDS.MSINFO(data)] });
return; return;
} }
query = args[0]; query = args.join(' ');
} }
else if (isSlashCommand) { else if (isSlashCommand) {