From b37118fee290548bdbd76a993d1f4e04b1ba6caf Mon Sep 17 00:00:00 2001 From: Noah Date: Fri, 25 Feb 2022 21:57:54 -0600 Subject: [PATCH] Fix addon handler --- Structures/Client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Structures/Client.js b/Structures/Client.js index 5223546..706a6af 100644 --- a/Structures/Client.js +++ b/Structures/Client.js @@ -76,10 +76,10 @@ class Client extends Discord.Client { `\u001b[32;1m`, "Loaded" ); - addon.commands.forEach((command) => { + addon.commands?.forEach((command) => { this.commands.set(command.name, command); }); - addon.events.forEach((event) => { + addon.events?.forEach((event) => { this.on(event.event, (...args) => event.run(this, ...args)); }); });