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
+1 -1
View File
@@ -62,7 +62,7 @@ module.exports = class TrueOrFalseCommand extends Command {
});
if (!interactions.size) return questionMsg.edit(`Sorry, time is up! It was ${correctBool}.`, { components: [] });
const ans = interactions.first();
const ansBool = ans.customID === 'true';
const ansBool = ans.customId === 'true';
if (correctBool !== ansBool) return ans.update(`Nope, sorry, it's ${correctBool}.`, { components: [] });
return ans.update('Nice job! 10/10! You deserve some cake!', { components: [] });
}