Chat / Unreal
Current version: v3
Chat Unreal v3
Chat Unreal
Chat
Unreal
Home
/
Chat
/
Unreal
/
Channels

Create an open channel

An open channel is ideal for use cases that require a small and static number of channels. To create an open channel on Sendbird Dashboard, follow the below steps:

  1. In your dashboard, go to Chat > Open channels, and then click Create channel at the top-right corner.
  2. In the dialog box that appears, specify the name, unique URL, cover image, and custom type of a channel.

You can also create a channel on demand or dynamically through the Chat SDK or the Chat API.

SBDOpenChannel::CreateChannel(NAME, CHANNEL_URL, COVER_URL, DATA, OPERATOR_USER_IDS, CUSTOM_TYPE, [](SBDOpenChannel* openChannel, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

Otherwise, you can create an open channel by passing a configured SBDOpenChannelParams object as an argument to the parameter in the CreateChannel() method like the following.

std::vector<std::wstring> operator_user_ids;
operator_user_ids.push_back(L"Tyler");

SBDOpenChannel::CreateChannel(SBDOpenChannelParams().SetOperatorUserIds(operator_user_ids), [](SBDOpenChannel* openChannel, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

List of arguments

ArgumentTypeDescription

NAME

std::wstring

Specifies the topic or the name of the channel.

CHANNEL_URL

std::wstring

Specifies the URL of the channel.

COVER_URL

std::wstring

Specifies the cover image URL of the channel.

DATA

std::wstring

Specifies additional channel information such as a long description of the channel or a JSON formatted string.

OPERATOR_USER_IDS

std::vector

Specifies a list of one or more users to register as operators of the channel. Operators can delete any messages and view all messages in the channel without any filtering or throttling.

CUSTOM_TYPE

std::wstring

Specifies the custom channel type which is used for channel grouping.

Using the cover_url property and UpdateChannel() method, you can get and update the cover image URL of a channel.