From 8ade947a5ec9205e508988acac9948d28ebce3df Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Mon, 5 Apr 2021 13:02:06 -0500 Subject: [PATCH] Use message.guild --- bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.js b/bot.js index d42db9a..56b2799 100644 --- a/bot.js +++ b/bot.js @@ -613,7 +613,7 @@ async function usersWith(message) { } async function aboutServer(message) { - await guild.members.fetch(); + await message.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;