Channel Categories
Closed this issue · 3 comments
Every channel object(in a guild) can have a parent_id
field(it should be nil
when no category), it is a snowflake that points to another channel(the channel category, type 4), the category has its own name and permission overwrites which can be synced to the category's childs.
Note: In theory, categories can have category childs, but the UI doesn't allow that 🤷
We could add a Alchemy.Category.t
where it could have functions like a get_childs(category_id) :: [Alchemy.Channel.t]
.
Thinking of splitting the channel type into 5 types (one for each id) instead of having this weird spec of keys that may or may not be there
It would be really nice! checking for the actual type instead of missing keys sounds way better
New pr splits up the channel types, feel free to raise issues / pr for utility functions or modifications related to this