Skip to content

Commit

Permalink
Move where crystal client is set (Idk if this matters but I think it …
Browse files Browse the repository at this point in the history
…does)
  • Loading branch information
natereprogle committed Nov 15, 2023
1 parent 601a2ae commit ef583a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/CrystalClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ef583a4

Please sign in to comment.