Missing `DiscordChannel.message` for thread channels
Heya, whenever I create a thread in a thread-only channel (a forum), according to the docs I should receive the message that was originally used to create the thread. However this message is missing for me, it seems the thread always gets treated as a regular thread. In fact, I cannot even see the original message in the entire messages flow of the thread.
I am thinking I am missing something obvious, any help would be appreciated 🙂
6 Replies
The original message should have the same ID as the thread itself
if you only have a Channel entity, remember to
.asOfOrNull<ForumThread>()
or whatever the type isI see, that's useful, so I can fetch it like that.
Hmm, I thought that was just a smart cast. When debugging the code, I cannot see the forum thread-specific data anywhere, so unless that code actually fetches more data from somewhere to complete the type, I don't think it will solve the issue
each type has different properties and functions available
you don't get all the functionality on the base type
This is the type I am using, which seems correct for forum channel threads (given the docs).
yep, seems like it
hm, i can't reproduce this, both of these get me the initial message: