PresenceAction

sealed interface PresenceAction(source)

Represents a presence action

Properties

Link copied to clipboard
abstract val joins: Map<String, Presence>

Represents a map of Presence objects indexed by their key. Your own key can be customized when creating the channel within the presence config

Link copied to clipboard
abstract val leaves: Map<String, Presence>

Represents a map of Presence objects indexed by their key. Your own key can be customized when creating the channel within the presence config

Functions

Link copied to clipboard
inline fun <T> PresenceAction.decodeJoinsAs(ignoreOtherTypes: Boolean = true): List<T>

Decodes all PresenceAction.joins values as T

Link copied to clipboard
inline fun <T> PresenceAction.decodeLeavesAs(ignoreOtherTypes: Boolean = true): List<T>

Decodes all PresenceAction.leaves values as T