mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +02:00
Fix
This commit is contained in:
@@ -75,9 +75,9 @@ module.exports = class KinoCommand extends Command {
|
|||||||
max: 1,
|
max: 1,
|
||||||
time: 15000
|
time: 15000
|
||||||
});
|
});
|
||||||
if (!initialInteractions.size) return initialMsg.edit('Maybe next time!');
|
if (!initialInteractions.size) return initialMsg.edit('Maybe next time!', { components: [] });
|
||||||
let choice = initialInteractions.first();
|
let choice = initialInteractions.first();
|
||||||
if (choice.customID === 'end') return choice.update('Maybe next time!');
|
if (choice.customID === 'end') return choice.update('Maybe next time!', { components: [] });
|
||||||
while (!end) {
|
while (!end) {
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
row.components[0].setDisabled(true);
|
row.components[0].setDisabled(true);
|
||||||
@@ -107,10 +107,10 @@ module.exports = class KinoCommand extends Command {
|
|||||||
} else if (choice.customID === 'end') {
|
} else if (choice.customID === 'end') {
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
return initialMsg.edit('Maybe next time!');
|
return initialMsg.edit('Maybe next time!', { components: [] });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return choice.update('Thank you for reading this chapter of Kino\'s Journey!');
|
return choice.update('Thank you for reading this chapter of Kino\'s Journey!', { components: [] });
|
||||||
}
|
}
|
||||||
|
|
||||||
async generateStory(file) {
|
async generateStory(file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user