Browse Source

Use message.guild

master
Abheek Dhawan 4 years ago
parent
commit
8ade947a5e
  1. 2
      bot.js

2
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;

Loading…
Cancel
Save