hopefully correct error handling for real

This commit is contained in:
Aster Fialla
2026-02-14 21:02:19 -05:00
committed by pieartsy
parent 3d36e6c9fc
commit 7c7b1f0202

View File

@@ -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) {