From d7011ed91648f28c9cc0ce8dc4e132ca6c02fd38 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Wed, 9 Jun 2021 22:39:27 -0400 Subject: [PATCH] Fix --- commands/other/kino.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/commands/other/kino.js b/commands/other/kino.js index 93d86fc7..e38ba894 100644 --- a/commands/other/kino.js +++ b/commands/other/kino.js @@ -71,6 +71,13 @@ module.exports = class KinoCommand extends Command { Press the "Next" button to go to the next page, and "Prev" to go back. Press "End" at any time to stop reading. `, { components: [row] }); + const initialInteractions = await questionMsg.awaitMessageComponentInteractions(filter, { + max: 1, + time: 15000 + }); + if (!initialInteractions.size) break; + const choice = initialInteractions.first().customID; + if (choice === 'end') return initialMsg.update('Maybe next time!'); while (!end) { if (i === 0) { row.components[0].setDisabled(true);