From d473a5119a5b9814ff996a07a994ad78135357da Mon Sep 17 00:00:00 2001 From: Aster Fialla Date: Sat, 14 Feb 2026 14:30:12 -0500 Subject: [PATCH] removed "return await" since idk what it does --- bot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.js b/bot.js index 37a0668..3ecaaa1 100644 --- a/bot.js +++ b/bot.js @@ -22,7 +22,7 @@ client.on(Events.MessageCreate, async (message) => { // Parse command and arguments const content = message.content.trim(); - // If message doesn't start with the bot prefix, it could still be a message with a proxy tag + // If message doesn't start with the bot prefix, it could still be a message with a proxy tag. If it's not, return. if (!content.startsWith(messageHelper.prefix)) { await webhookHelper.sendMessageAsMember(client, message, content); return; @@ -30,7 +30,7 @@ client.on(Events.MessageCreate, async (message) => { const commandName = content.slice(messageHelper.prefix.length).split(" ")[0]; // If there's no command name (ie just the prefix) - if (!commandName) return await message.reply(enums.help.SHORT_DESC_PLURALFLUX); + if (!commandName) await message.reply(enums.help.SHORT_DESC_PLURALFLUX); const args = messageHelper.parseCommandArgs(content, commandName); @@ -42,7 +42,7 @@ client.on(Events.MessageCreate, async (message) => { } } catch(error) { - return await message.reply(error); + return await message.reply(error.message); } });