mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user