From 0412427b6f5c3461e177b3f8690b7148a55f3dda Mon Sep 17 00:00:00 2001 From: Zerio Date: Sat, 2 Oct 2021 11:03:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Inactivity=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/music/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/music/search.js b/commands/music/search.js index 18109da..d51bbc2 100644 --- a/commands/music/search.js +++ b/commands/music/search.js @@ -63,5 +63,9 @@ module.exports = { if (!queue.playing) await queue.play(); }); + + collector.on('end', (msg, reason) => { + if (reason === 'time') return message.channel.send(`Search timed out ${message.author}... try again ? ❌`); + }); }, }; \ No newline at end of file