Browse Source

Use member.guild.memberCount instead of message.guild.memberCount

master
Abheek Dhawan 4 years ago
parent
commit
fe881a5f97
  1. 2
      index.js

2
index.js

@ -96,7 +96,7 @@ async function memberCountChannelUpdate(member) {
if (result.member_count_channel_id) { if (result.member_count_channel_id) {
memberCountChannel = result.member_count_channel_id; memberCountChannel = result.member_count_channel_id;
if (member.guild.channels.cache.get(memberCountChannel)) { 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);
} }
} }
}); });

Loading…
Cancel
Save