flagarium
flagarium

Reputation: 9

How to get IDs of channels under a category?

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

Answers (1)

Worthy Alpaca
Worthy Alpaca

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

Related Questions