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 toolkit15mo 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
Danial15mo ago
It should CategoryChannel.children.cache.size
d.js docs
d.js docs15mo ago
property CategoryChannelChildManager#cache The channels that are a part of this category
Tyranasaurus
Tyranasaurus15mo ago
Gotcha ty!!