From fe881a5f977abdc6ee779548863c2ba4cf4ecfc5 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Sun, 4 Apr 2021 00:11:26 -0500 Subject: [PATCH] Use member.guild.memberCount instead of message.guild.memberCount --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a97327d..7e5e2ef 100644 --- a/index.js +++ b/index.js @@ -96,7 +96,7 @@ async function memberCountChannelUpdate(member) { if (result.member_count_channel_id) { memberCountChannel = result.member_count_channel_id; if (member.guild.channels.cache.get(memberCountChannel)) { - member.guild.channels.cache.get(memberCountChannel).edit({ name: `Members: ${message.guild.memberCount}` }).catch(console.error); + member.guild.channels.cache.get(memberCountChannel).edit({ name: `Members: ${member.guild.memberCount}` }).catch(console.error); } } });