Marketplace API / Types

ChatChannel

Object

A chat channel and its access rules.

type ChatChannel implements Node

Fields

FieldTypeDescription
accessChatChannelAccess!
Who can read and post in this channel.
createdAtDateTime!
When the channel was created.
descriptionString
The channel's description. Null when the channel has none.
idID!
A globally unique ID. Treat this value as an opaque string.
messagesChatChannelMessageConnection!
Messages that are not deleted and are within retention, newest first. first defaults to 20, at most 100. Requires viewer.canRead.Arguments:
after: String — Cursor for forward pagination.
first: Int — Maximum number of messages to return. Defaults to 20. Values outside 1 through 100 are rejected.
nameString!
The channel's display name.
positionNonNegativeInt!
Zero-based position in its section, or among channels with no section.
realtimeChannelNameNonEmptyString!
The realtime channel this channel's events are published on. Attach to it with the Ably client that Query.ablyTokenRequest authorizes. Several channels can share one, so match an event to a channel by the channel ID in its payload.
sectionChatChannelSection
Null when the channel has no section. Channels with no section come after every section.
slugSlug!
Changes only when the channel is renamed.
urlURL!
The channel page on the storefront.
viewerChatChannelViewerState
The caller's access to this channel and read state in it. Null for a signed-out caller.

Returned by