diff --git a/backend/src/index.ts b/backend/src/index.ts index e74f7629..d578ddbb 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -274,7 +274,7 @@ connect().then(async () => { } }); - client.on("error", (err) => { + client.on(Events.Error, (err) => { errorHandler(new DiscordJSError(err.message, (err as any).code, 0)); }); @@ -371,7 +371,7 @@ connect().then(async () => { }, }); - client.once("ready", () => { + client.once(Events.ClientReady, () => { startUptimeCounter(); });