Membership object

Membership is an object that refers to a single user-channel relationship in a chat.

Properties

The Membership interface has the following properties:

interface Membership {
val chat: Chat
val channel: Channel
val user: User
val custom: Map<String, Any?>?
val updated: String?
val eTag: String?
val lastReadMessageTimetoken: Long?
...
}
ParameterDescription
chat
Type: Chat
Reference to the main Chat object.
channel
Type: Channel
Channel object.
user
Type: User
User object.
custom
Type: Map<String, Any?>
Any custom properties or metadata associated with the user-channel relationship in the form of a map of key-value pairs. App Context filtering language doesn’t support filtering by custom properties.
updated
Type: String
Last time the Membership object was changed.
eTag
Type: String
Caching value that changes whenever the Membership object changes.
lastReadMessageTimetoken
Type: Long
Timetoken of the last message a user read on a given channel.
API limits

To learn about the maximum length of parameters used to set channel membership metadata, refer to REST API docs.

Methods

You can call the following methods and properties on the Membership object.

Click on each method or property for more details.

Use case

For example, you can use the Membership object methods to:

Last updated on