MemberInfo

@Immutable
data class MemberInfo(val channelRole: String? = null, val notificationsMuted: Boolean = false, val extraData: Map<String, Any> = emptyMap()) : CustomObject

Model holding limited data about a channel member, as attached to a Message by Message.member.

This is not a full Member: there is no user, no timestamps and no invite or ban state.

Constructors

Link copied to clipboard
constructor(channelRole: String? = null, notificationsMuted: Boolean = false, extraData: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard

The channel-level role of the member.

Link copied to clipboard
open override val extraData: Map<String, Any>

A map of custom fields for the member.

Link copied to clipboard

If notifications are muted for the member in the channel.

Functions

Link copied to clipboard
open fun <T> getExtraValue(key: String, default: T): T

Returns the value associated with the given key, or default if the key is not present in the extraData.