Add option to let user search directly from play

This commit is contained in:
2022-02-27 19:21:50 +07:00
parent 108a4042e2
commit b274332cc9
4 changed files with 75 additions and 10 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export async function sendMessageOrInteractionResponse(data: Message | Interacti
const isSlashCommand = data instanceof Interaction && data.isCommand();
const isMessage = data instanceof Message;
if(isSlashCommand || (data instanceof Interaction && data.isSelectMenu())) {
if(isSlashCommand || (data instanceof Interaction && ( data.isSelectMenu() || data.isButton()))) {
if(!data.replied) {
let message;
try {