K
Kord4d 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
gdude4d ago
You'd need to .getChannelOf with CategorizableChannel iirc
sbot50
sbot50OP4d 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.
Want results from more Discord servers?
Add your server