Skip to content

Commit

Permalink
🛠️ Fixes an issue that prevented it from continuing
Browse files Browse the repository at this point in the history
  • Loading branch information
Maseshi committed Dec 12, 2022
1 parent 0057360 commit becd119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/events/client/ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ module.exports = async (client) => {
const guildSize = client.guilds.cache.size;
const userSize = client.users.cache.size;

const prevGuildSize = client.api.statistics.size.guilds;
const prevUserSize = client.api.statistics.size.users;
const prevGuildSize = client.api.statistics ? client.api.statistics.size.guilds : guildSize;
const prevUserSize = client.api.statistics ? client.api.statistics.size.users : userSize;

if (client.mode === "start") {
if (guildSize !== prevGuildSize || userSize !== prevUserSize) {
Expand Down

0 comments on commit becd119

Please sign in to comment.