Fix addon handler

This commit is contained in:
Noah committed 2022-02-25 21:57:54 -06:00
1 parent 026caba68a
commit b37118fee2
1 file changed
+2 -2
+2 -2
View File
@@ -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));
});
});