ThreadMessage object

ThreadMessage represents a single message in a thread.

Properties​

ThreadMessage extends Message and adds:

1class ThreadMessage extends Message {
2 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​

Available 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

Was this page useful?

Last updated on