From ef583a41c20c1f8cbdb3af1093a894486e229dc8 Mon Sep 17 00:00:00 2001 From: Nate Reprogle <4064388+TerrrorByte@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:37:35 -0600 Subject: [PATCH] Move where crystal client is set (Idk if this matters but I think it does) --- src/types/CrystalClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/CrystalClient.ts b/src/types/CrystalClient.ts index f05d71b..2ca2244 100644 --- a/src/types/CrystalClient.ts +++ b/src/types/CrystalClient.ts @@ -11,12 +11,13 @@ export default class CrystalClient extends Client { constructor(options: ClientOptions) { super(options) - CrystalClient.client = this CrystalClient.commands = new Collection() CrystalClient.events = new Collection() void loadEvents(CrystalClient.client) + CrystalClient.client = this + } static getClient(): CrystalClient {