From 324df8f0f2e05430116ad96ba54a76f7ccbc8333 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Mon, 17 May 2021 09:40:00 -0400 Subject: [PATCH] Update src/bot.ts --- src/bot.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bot.ts b/src/bot.ts index 4333d0135..431abed1a 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -50,6 +50,7 @@ export function replaceEventHandlers(newEventHandlers: EventHandlers) { /** Allows you to dynamically update the event handlers by passing in new eventHandlers */ export function updateEventHandlers(newEventHandlers: EventHandlers) { + // Object.assign instead of ... operator because of the Proxy used Object.assign(eventHandlers, newEventHandlers); }