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
+3 -3
View File
@@ -56,7 +56,7 @@ module.exports = class AkinatorCommand extends Command {
return gameMsg.edit('Guess you didn\'t want to play after all...', { components: [] });
}
let buttonPress = initialVerify.first();
if (buttonPress.customID === 'false') return buttonPress.update('Too bad...', { components: [] });
if (buttonPress.customId === 'false') return buttonPress.update('Too bad...', { components: [] });
await this.sendLoadingMessage(buttonPress, [initialRow]);
const guessBlacklist = [];
while (timesGuessed < 3) {
@@ -96,7 +96,7 @@ module.exports = class AkinatorCommand extends Command {
}
buttonPress = interactions.first();
await this.sendLoadingMessage(buttonPress, [row, sRow]);
const choice = interactions.first().customID;
const choice = interactions.first().customId;
if (choice === 'end') {
forceGuess = true;
} else if (choice === 'back') {
@@ -138,7 +138,7 @@ module.exports = class AkinatorCommand extends Command {
}
buttonPress = verification.first();
await this.sendLoadingMessage(buttonPress, [guessRow]);
if (buttonPress.customID === 'true') {
if (buttonPress.customId === 'true') {
win = false;
break;
} else if (timesGuessed >= 3 || forceGuess) {