From 48418313ede6bae0ee7f9e6f649634d5c4c2245c Mon Sep 17 00:00:00 2001 From: HewkawAr Date: Thu, 4 Jul 2024 18:19:48 +0700 Subject: [PATCH] Update help.js DiscordAPIError[50027]: Invalid Webhook Token --- commands/Common/help.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/commands/Common/help.js b/commands/Common/help.js index 2516289..d2d5ff2 100644 --- a/commands/Common/help.js +++ b/commands/Common/help.js @@ -117,14 +117,16 @@ module.exports = { collecter.on("end", async () => { try { - await interaction.editReply({ - embeds: [ - new EmbedBuilder() - .setColor(Colors.Yellow) - .setTitle(locale.getLocaleString("command.help.timeout")) - ], - components: [] - }); + if (message) { + await interaction.editReply({ + embeds: [ + new EmbedBuilder() + .setColor(Colors.Yellow) + .setTitle(locale.getLocaleString("command.help.timeout")) + ], + components: [] + }); + } } catch (err) { console.error(err); }