Stan
Stan
Explore posts from servers
KKord
Created by Stan on 9/27/2024 in #help
Missing `DiscordChannel.message` for thread channels
/**
* A thread channel instance whose parent is a [TextChannel] or [ForumChannel].
*/
public class TextChannelThread(
override val data: ChannelData,
override val kord: Kord,
override val supplier: EntitySupplier = kord.defaultSupplier
) : ThreadChannel {
/**
* A thread channel instance whose parent is a [TextChannel] or [ForumChannel].
*/
public class TextChannelThread(
override val data: ChannelData,
override val kord: Kord,
override val supplier: EntitySupplier = kord.defaultSupplier
) : ThreadChannel {
This is the type I am using, which seems correct for forum channel threads (given the docs).
10 replies
KKord
Created by Stan on 9/27/2024 in #help
Missing `DiscordChannel.message` for thread channels
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
10 replies
KKord
Created by Stan on 9/27/2024 in #help
Missing `DiscordChannel.message` for thread channels
I see, that's useful, so I can fetch it like that.
10 replies