Update src/bot.ts

This commit is contained in:
Skillz4Killz
2021-05-17 09:40:00 -04:00
committed by GitHub
parent 91d3b36097
commit 324df8f0f2
+1
View File
@@ -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);
}