Get number of channels in category

Hello, pretty simple, trying to do the above. if I have the CategoryChannel object, I've tried CategoryChannel.children.size, but this doesn't work. I've messed around with a couple of other solutions that didn't work either.
4 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Danial
Danial2y ago
It should CategoryChannel.children.cache.size
d.js docs
d.js docs2y ago
property CategoryChannelChildManager#cache The channels that are a part of this category
Tyranasaurus
TyranasaurusOP2y ago
Gotcha ty!!
Want results from more Discord servers?
Add your server