From e8cbfd0ce2b37d4b39302806d6c4acb34ed7ce57 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 13:01:48 -0500 Subject: [PATCH] Fetch all members first to cache --- bot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.js b/bot.js index 9508c8b..d42db9a 100644 --- a/bot.js +++ b/bot.js @@ -613,6 +613,7 @@ async function usersWith(message) { } async function aboutServer(message) { + await guild.members.fetch(); const textChannelCount = message.guild.channels.cache.filter(c => c.type === 'text').size; const voiceChannelCount = message.guild.channels.cache.filter(c => c.type === 'voice').size; const categoryChannelCount = message.guild.channels.cache.filter(c => c.type === 'category').size;