mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 16:57:22 +00:00
Update src/bot.ts
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user