---
source_url: https://www.pubnub.com/docs/chat/unreal-chat-sdk/learn/chat-entities/thread-message
title: ThreadMessage object
updated_at: 2026-05-22T11:04:46.005Z
---

> Documentation Index
> For a curated overview of PubNub documentation, see: https://www.pubnub.com/docs/llms.txt
> For the full list of all documentation pages, see: https://www.pubnub.com/docs/llms-full.txt


# ThreadMessage object

`ThreadMessage` represents a single message in a thread.

## Properties

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

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| ParentChannelId | FString | Optional |  | Unique identifier of the main channel on which you create a subchannel (thread channel) and thread messages. |

## Methods

You can call the following methods on the `ThreadMessage` object.

Click on each method for more details.

* [GetParentChannelID()](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads#get-thread) — returns the parent channel ID (local, no network call).
* [PinMessageToParentChannel()](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads#pin-thread-message-to-parent-channel)
* [UnpinMessageFromParentChannel()](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads#unpin-thread-message-from-parent-channel)
* All methods available under the [Message object](https://www.pubnub.com/docs/chat/unreal-chat-sdk/learn/chat-entities/message).

## Streaming

Inherits all [Message streaming methods](https://www.pubnub.com/docs/chat/unreal-chat-sdk/learn/chat-entities/message#streaming).

## Use case

`ThreadMessage` methods enable:

* Sending messages in [threads](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads)
* [Pinning](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads#pin-thread-message-to-parent-channel) thread messages to the parent channel