This commit is contained in:
Dragon Fire
2021-08-02 20:26:18 -04:00
parent 0ba5f71e06
commit 2c3ecd51cd
4 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -78,7 +78,7 @@ module.exports = class KinoCommand extends Command {
});
if (!initialInteractions.size) return initialMsg.edit('Maybe next time!', { components: [] });
let choice = initialInteractions.first();
if (choice.customID === 'end') return choice.update('Maybe next time!', { components: [] });
if (choice.customId === 'end') return choice.update('Maybe next time!', { components: [] });
while (!end) {
if (i === 0) {
row.components[0].setDisabled(true);
@@ -101,11 +101,11 @@ module.exports = class KinoCommand extends Command {
});
if (!interactions.size) break;
choice = interactions.first();
if (choice.customID === 'next') {
if (choice.customId === 'next') {
i++;
} else if (choice.customID === 'prev') {
} else if (choice.customId === 'prev') {
i--;
} else if (choice.customID === 'end') {
} else if (choice.customId === 'end') {
break;
} else {
return initialMsg.edit('Maybe next time!', { components: [] });