Skip to content

Commit

Permalink
fix(Bot): bot instance should be current bot instance
Browse files Browse the repository at this point in the history
  • Loading branch information
dylhack committed May 18, 2022
1 parent 7a3675a commit a46d73b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/structures/Bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ export class Bot extends Client<true> {
partials: ["MESSAGE", "CHANNEL", "REACTION"],
});
this.lastLoggedDeletion = new Map();
Bot.instance = this;
}

static getInstance(): Bot {
if (!Bot.instance) {
Bot.instance = new Bot();
}

return Bot.instance;
}

Expand Down

0 comments on commit a46d73b

Please sign in to comment.