K
Kord2mo ago
sbot50

How do I get the category a channel is in?

How do I get the category a channel is in, if any? I cant find it, I thought maybe its just based on whatever .getPosition() is but that seems like just a random number lol.
2 Replies
gdude
gdude2mo ago
You'd need to .getChannelOf with CategorizableChannel iirc
sbot50
sbot50OP2mo ago
Ok so no clue what i would want to but in the <> of .getChannelOf, but theoretically i could cast it as a categorizablechannel and then get the category then do .asChannel and i will have the category. (if i wasnt hit with more access bs from dc, but ill figure it out from here) thanks.

Did you find this page helpful?