diff options
Diffstat (limited to 'src/tasks/memberCount.ts')
-rw-r--r-- | src/tasks/memberCount.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tasks/memberCount.ts b/src/tasks/memberCount.ts index 0f1dfc0..fa51080 100644 --- a/src/tasks/memberCount.ts +++ b/src/tasks/memberCount.ts @@ -13,7 +13,9 @@ export default class MemberCountTask extends BushTask { if (!client.config.isProduction) return; const res = await Promise.allSettled( - client.guilds.cache.map((g) => MemberCount.create({ guildId: g.id, memberCount: g.memberCount })) + client.guilds.cache + .filter((g) => g.memberCount >= 100) + .map((g) => MemberCount.create({ guildId: g.id, memberCount: g.memberCount })) ); res |