Channel
Channel is where conversations take place between two or more chat users. It contains a list of messages and have a list of the member users that are participating in the conversation.
Parameters
Channel's unique ID.
Type of the channel.
Channel's name.
Channel's image.
Number of channel watchers.
Whether channel is frozen or not.
Date of the last message sent.
Date/time of creation.
Date/time of deletion.
Date/time of the last update.
Local field used to store channel's sync status and retry requests if needed.
Number of members in the channel.
The list of channel's messages.
The list of channel's members.
The list of channel's watchers.
The list of read states.
Channel's configuration.
Creator of the channel.
The number of unread messages for the current user.
Team the channel belongs to (multi-tenant only).
Whether this channel is hidden by current user or not.
Messages before this date are hidden from the user.
Cooldown period after sending each message in seconds.
The list of pinned messages in the channel.
Channel's capabilities available for the current user. Note that the field is not provided in the events.
Represents relationship of the current user to this channel.
A map of custom fields for the channel.
The list of cached messages if the regular list does not contain the newest messages.
When the channel is inside search, eg. searching from the channel list for a message or when hopping to a quoted message a number pages away without retaining the newest messages in the list.
Constructors
Properties
Determines the last updated date/time. Returns either lastMessageAt or createdAt.