From 7c7b1f0202c01500a4499704f704a1c917cb8f4c Mon Sep 17 00:00:00 2001 From: Aster Fialla Date: Sat, 14 Feb 2026 21:02:19 -0500 Subject: [PATCH] hopefully correct error handling for real --- bot.js => src/bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename bot.js => src/bot.js (94%) diff --git a/bot.js b/src/bot.js similarity index 94% rename from bot.js rename to src/bot.js index eeba199..6c5d337 100644 --- a/bot.js +++ b/src/bot.js @@ -24,7 +24,7 @@ client.on(Events.MessageCreate, async (message) => { // 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); + await webhookHelper.sendMessageAsMember(client, message, content).catch(e => throw e); return; } @@ -36,7 +36,7 @@ client.on(Events.MessageCreate, async (message) => { const command = commands.get(commandName); if (command) { - await command.execute(message, client, args); + await command.execute(message, client, args).catch(e => throw e); } } catch(error) {