mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +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 the "Next" button to go to the next page, and "Prev" to go back.
|
||||||
Press "End" at any time to stop reading.
|
Press "End" at any time to stop reading.
|
||||||
`, { components: [row] });
|
`, { 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) {
|
while (!end) {
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
row.components[0].setDisabled(true);
|
row.components[0].setDisabled(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user