From 69e08329fe62a8342258799bf26b63657a4f89d6 Mon Sep 17 00:00:00 2001 From: The Alpha Date: Sun, 7 Jan 2024 11:33:52 +0800 Subject: [PATCH] fix(DiscordBot): Pass event args without modifications Events were getting args that are after bot as an array, now they're being passed as separate args --- src/class/discordBot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/discordBot.js b/src/class/discordBot.js index 5ea0454..1d75ee5 100644 --- a/src/class/discordBot.js +++ b/src/class/discordBot.js @@ -174,7 +174,7 @@ class DiscordBot extends Client { const e = event const { data, execute } = e /** @type {import('../options').ClientEventFunction} */ - const func = (...args) => execute(this, [...args]) + const func = (args) => execute(this, args) if (data.name === Events.ClientReady || data.once) { this.once(data.name, func)