data class ChannelResponse(@Json(name = "cid") val cid: String, @Json(name = "created_at") val createdAt: OffsetDateTime, @Json(name = "custom") val custom: Map<String, Any?>, @Json(name = "disabled") val disabled: Boolean, @Json(name = "frozen") val frozen: Boolean, @Json(name = "id") val id: String, @Json(name = "type") val type: String, @Json(name = "updated_at") val updatedAt: OffsetDateTime, @Json(name = "auto_translation_enabled") val autoTranslationEnabled: Boolean? = null, @Json(name = "auto_translation_language") val autoTranslationLanguage: String? = null, @Json(name = "blocked") val blocked: Boolean? = null, @Json(name = "config") val config: ChannelConfigWithInfo? = null, @Json(name = "cooldown") val cooldown: Int? = null, @Json(name = "created_by") val createdBy: UserObject? = null, @Json(name = "deleted_at") val deletedAt: OffsetDateTime? = null, @Json(name = "hidden") val hidden: Boolean? = null, @Json(name = "hide_messages_before") val hideMessagesBefore: OffsetDateTime? = null, @Json(name = "last_message_at") val lastMessageAt: OffsetDateTime? = null, @Json(name = "member_count") val memberCount: Int? = null, @Json(name = "members") val members: List<ChannelMember>? = null, @Json(name = "mute_expires_at") val muteExpiresAt: OffsetDateTime? = null, @Json(name = "muted") val muted: Boolean? = null, @Json(name = "own_capabilities") val ownCapabilities: List<String>? = null, @Json(name = "team") val team: String? = null, @Json(name = "truncated_at") val truncatedAt: OffsetDateTime? = null, @Json(name = "truncated_by") val truncatedBy: UserObject? = null) Represents channel in chat
Parameters
Whether channel is frozen or not
Date/time of the last update
Whether auto translation is enabled or not
Language to translate to when auto translation is active
Whether this channel is blocked by current user or not
Cooldown period after sending each message
Whether this channel is hidden by current user or not
Date since when the message history is accessible
Date of the last message sent
Number of members in the channel
List of channel members (max 100)
Whether this channel is muted or not
List of channel capabilities of authenticated user
Team the channel belongs to (multi-tenant only)
Date of the latest truncation of the channel