On this page

ThreadMessage object

ThreadMessage represents a single message in a thread.

Properties​

The ThreadMessage interface extends the Message interface, so it takes its properties. It also has:

1interface ThreadMessage : Message {
2 val parentChannelId: String
3}
ParameterDescription
parentChannelId
Type: String
Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages.

Methods​

The ThreadMessage object exposes the following methods.

Regular methods​

Event listeners​

All methods available under the Message object also apply to ThreadMessage.

Use case​

ThreadMessage methods enable:

  • Sending messages in threads
  • Pinning thread messages to the parent channel