From 605268ff17b49805bb3cb4569e632aac34f6366b Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 2 May 2024 00:04:52 -0400 Subject: [PATCH] Fix --- commands/games-sp/hunger-games.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/commands/games-sp/hunger-games.js b/commands/games-sp/hunger-games.js index c5d5966d..755247af 100644 --- a/commands/games-sp/hunger-games.js +++ b/commands/games-sp/hunger-games.js @@ -73,11 +73,15 @@ module.exports = class HungerGamesCommand extends Command { max: 1, time: 30000 }); - if (buttonPress.customId === 'false') return buttonPress.reply({ content: 'Too bad...', components: [] }); + if (buttonPress.customId === 'false') { + await buttonPress.update({ content: text, components: [] }); + return msg.reply('Too bad...', { components: [] }); + } } catch { - return buttonPress.reply({ content: 'See you next time!', components: [] }); + await buttonPress.update({ content: text, components: [] }); + return msg.reply('See you next time!', { components: [] }); } - buttonPress.update({ content: text, components: [] }); + await buttonPress.update({ content: text, components: [] }); if (!bloodbath) sun = !sun; if (bloodbath) bloodbath = false; }