How can I get the text channel a thread is in?

So, when I do interaction.channel I get the thread channel. I was wondering if it is possible to somehow find out what text channel the thread channel is in from just the thread channel. Any help is greatly appreciated.
9 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
method ThreadChannel#fetchStarterMessage() Fetches the message that started this thread, if any. (more...)
Squid
Squid2y ago
You can then access Message#channel, I presume
d.js docs
d.js docs2y ago
property ThreadChannel#parent The parent channel of this thread
dzlandis
dzlandis2y ago
I'll try it out 👍 @Myth 🌈 this gives the channel category tmk
MrMythical
MrMythical2y ago
Nope
dzlandis
dzlandis2y ago
I swear I just tried it and it gave me the channel category 🤷‍♂️
MrMythical
MrMythical2y ago
It would only give a category if you used it on a GuildChannel pretty sure
dzlandis
dzlandis2y ago
Ah, you right. I just got confused because I was looking at the parentId of the parentId when logging it by accident. Thanks 👍