diff --git a/src/structure/client/EventHooker.js b/src/structure/client/EventHooker.js index 5c709de..0995438 100644 --- a/src/structure/client/EventHooker.js +++ b/src/structure/client/EventHooker.js @@ -57,7 +57,11 @@ class EventHooker { // the forEach implementation does not await the results of the function before moving onto the next iteration // which is a problem if we don't want functionality to be overlapping, i.e. different filters trying to delete the same message for (const handler of this.events.get(eventName)) { - await handler(...args); + try { // this try-catch should only be temporary until any issues have been ironed out + await handler(...args); + } catch (err) { + this.logger.error(`Event handler (${handler.name}) for ${eventName} errored:\n${err.stack}`); + } } }); }