ChannelResponse

constructor(@Json(name = "cid") cid: String, @Json(name = "created_at") createdAt: OffsetDateTime, @Json(name = "custom") custom: Map<String, Any?>, @Json(name = "disabled") disabled: Boolean, @Json(name = "frozen") frozen: Boolean, @Json(name = "id") id: String, @Json(name = "type") type: String, @Json(name = "updated_at") updatedAt: OffsetDateTime, @Json(name = "auto_translation_enabled") autoTranslationEnabled: Boolean? = null, @Json(name = "auto_translation_language") autoTranslationLanguage: String? = null, @Json(name = "blocked") blocked: Boolean? = null, @Json(name = "config") config: ChannelConfigWithInfo? = null, @Json(name = "cooldown") cooldown: Int? = null, @Json(name = "created_by") createdBy: UserObject? = null, @Json(name = "deleted_at") deletedAt: OffsetDateTime? = null, @Json(name = "hidden") hidden: Boolean? = null, @Json(name = "hide_messages_before") hideMessagesBefore: OffsetDateTime? = null, @Json(name = "last_message_at") lastMessageAt: OffsetDateTime? = null, @Json(name = "member_count") memberCount: Int? = null, @Json(name = "members") members: List<ChannelMember>? = null, @Json(name = "mute_expires_at") muteExpiresAt: OffsetDateTime? = null, @Json(name = "muted") muted: Boolean? = null, @Json(name = "own_capabilities") ownCapabilities: List<String>? = null, @Json(name = "team") team: String? = null, @Json(name = "truncated_at") truncatedAt: OffsetDateTime? = null, @Json(name = "truncated_by") truncatedBy: UserObject? = null)

Parameters

cid

Channel CID (:)

createdAt

Date/time of creation

custom
disabled
frozen

Whether channel is frozen or not

id

Channel unique ID

type

Type of the channel

updatedAt

Date/time of the last update

autoTranslationEnabled

Whether auto translation is enabled or not

autoTranslationLanguage

Language to translate to when auto translation is active

blocked

Whether this channel is blocked by current user or not

config
cooldown

Cooldown period after sending each message

createdBy
deletedAt

Date/time of deletion

hidden

Whether this channel is hidden by current user or not

hideMessagesBefore

Date since when the message history is accessible

lastMessageAt

Date of the last message sent

memberCount

Number of members in the channel

members

List of channel members (max 100)

muteExpiresAt

Date of mute expiration

muted

Whether this channel is muted or not

ownCapabilities

List of channel capabilities of authenticated user

team

Team the channel belongs to (multi-tenant only)

truncatedAt

Date of the latest truncation of the channel

truncatedBy