From 16ac8b176ed4bd0a2d74f460f3769fb6f51cb5c2 Mon Sep 17 00:00:00 2001 From: Skillz Date: Mon, 18 May 2020 08:11:29 -0400 Subject: [PATCH] reload events handlers --- README.md | 1 + module/client.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index d244836b5..df676d9b8 100644 --- a/README.md +++ b/README.md @@ -311,4 +311,5 @@ This section will list out all the available methods and functionality in the li ```ts .editBotsStatus(status, name, type) +updateEventHandlers(eventHandlers) ``` diff --git a/module/client.ts b/module/client.ts index 88e2cc0c5..1184f13c5 100644 --- a/module/client.ts +++ b/module/client.ts @@ -50,3 +50,7 @@ export default createClient; export const updateChannelCache = (key: string, value: Channel) => { cache.channels.set(key, value); }; + +export function updateEventHandlers(newEventHandlers: EventHandlers) { + eventHandlers = newEventHandlers +}