ThreadChannel object
ThreadChannel represents a single thread (channel) in a chat.
Properties
The ThreadChannel interface extends the Channel interface, so it takes its properties. It also has:
1interface ThreadChannel : Channel {
2 val parentMessage: Message
3 val parentChannelId: String
4}
| Parameter | Description |
|---|---|
parentMessageType: Message | Message for which the thread was created. |
parentChannelIdType: String | Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages. |
Methods
The ThreadChannel object exposes the following methods.
getHistory()pinMessage()pinMessageToParentChannel()unpinMessage()unpinMessageFromParentChannel()- All methods available under the
Channelobject.
Use case
ThreadChannel methods enable: