Reputation: 9
Channels have parent_id
that returns the category they're in, but is there anything like a child_id
that could give me the channels a category has in it?
Upvotes: 0
Views: 412
Reputation: 1245
It's not so much an ID but a collection but yes. Each categoryChannel
has a .children
property that returns all channels inside the category.
https://discord.js.org/#/docs/main/stable/class/CategoryChannel?scrollTo=children
Upvotes: 1