From 309d4669af6dc3bcd7a83c2d59161727d701cd5a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 7 Jun 2021 18:10:13 -0400 Subject: [PATCH] Fix --- commands/games-sp/true-or-false.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/commands/games-sp/true-or-false.js b/commands/games-sp/true-or-false.js index be56f968..b7b81569 100644 --- a/commands/games-sp/true-or-false.js +++ b/commands/games-sp/true-or-false.js @@ -62,11 +62,12 @@ module.exports = class TrueOrFalseCommand extends Command { time: 15000 }); if (!interactions.size) return questionMsg.edit(`Sorry, time is up! It was ${correctBool}.`, { components: [] }); - const ans = interactions.first().customID === 'true'; - if (correctBool !== ans) return questionMsg.edit(`Nope, sorry, it's ${correctBool}.`, { components: [] }); - return questionMsg.edit('Nice job! 10/10! You deserve some cake!', { components: [] }); + const ans = interactions.first(); + const ansBool = ans.customID === 'true'; + if (correctBool !== ansBool) return ans.editReply(`Nope, sorry, it's ${correctBool}.`, { components: [] }); + return ans.editReply('Nice job! 10/10! You deserve some cake!', { components: [] }); } catch (err) { - return questionMsg.edit(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); + return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`); } } };