CedarBlocks
CedarBlocks

Reputation: 86

Discord.js v12 get total number of channels that your bot is in

So eval(bot.guilds.cache.map(g => g.memberCount).join(' + ')); gets the total number of discord users that are in the same guild as your bot, how do I get the total number of channels in all the guilds that my bot has access to?

Upvotes: 0

Views: 2164

Answers (1)

D. Pardal
D. Pardal

Reputation: 6597

Use this:

bot.channels.cache.size

Upvotes: 1

Related Questions