---
source_url: https://www.pubnub.com/docs/chat/unreal-chat-sdk/learn/chat-entities/thread-channel
title: ThreadChannel object
updated_at: 2026-06-24T11:04:46.020Z
---

> 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


# ThreadChannel object

`ThreadChannel` represents a single thread (channel) in a chat.

## Properties

The `ThreadChannel` object extends the `Channel` 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 `ThreadChannel` 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).
* [GetParentMessage()](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads#get-thread) — returns the parent message object (local, no network call).
* [GetThreadHistory()](https://www.pubnub.com/docs/chat/unreal-chat-sdk/build/features/messages/threads#get-historical-thread-message)
* [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 [Channel object](https://www.pubnub.com/docs/chat/unreal-chat-sdk/learn/chat-entities/channel).

## Streaming

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

To receive new messages posted to a thread, bind to `OnThreadMessageReceived` (type `FOnPubnubChatThreadMessageReceived`, parameter `UPubnubChatThreadMessage*`) before calling `Connect()`.

## Use case

`ThreadChannel` methods enable:

* Creating and replying 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