Config

@Immutable
data class Config(val createdAt: Date? = null, val updatedAt: Date? = null, val name: String = "", val typingEventsEnabled: Boolean = true, val readEventsEnabled: Boolean = true, val connectEventsEnabled: Boolean = true, val searchEnabled: Boolean = true, val isReactionsEnabled: Boolean = true, val isThreadEnabled: Boolean = true, val muteEnabled: Boolean = true, val uploadsEnabled: Boolean = true, val urlEnrichmentEnabled: Boolean = true, val customEventsEnabled: Boolean = false, val pushNotificationsEnabled: Boolean = true, val pollsEnabled: Boolean = false, val messageRetention: String = "infinite", val maxMessageLength: Int = 5000, val automod: String = "disabled", val automodBehavior: String = "", val blocklistBehavior: String = "", val commands: List<Command> = mutableListOf())

Constructors

Link copied to clipboard
constructor(createdAt: Date? = null, updatedAt: Date? = null, name: String = "", typingEventsEnabled: Boolean = true, readEventsEnabled: Boolean = true, connectEventsEnabled: Boolean = true, searchEnabled: Boolean = true, isReactionsEnabled: Boolean = true, isThreadEnabled: Boolean = true, muteEnabled: Boolean = true, uploadsEnabled: Boolean = true, urlEnrichmentEnabled: Boolean = true, customEventsEnabled: Boolean = false, pushNotificationsEnabled: Boolean = true, pollsEnabled: Boolean = false, messageRetention: String = "infinite", maxMessageLength: Int = 5000, automod: String = "disabled", automodBehavior: String = "", blocklistBehavior: String = "", commands: List<Command> = mutableListOf())

Properties

Link copied to clipboard

Disabled, simple or AI are valid options for the Automod. AI based moderation is a premium feature.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The commands that are available on this channel type, e.g. /giphy.

Link copied to clipboard

Determines if events are fired for connecting and disconnecting to a chat. Enabled by default.

Link copied to clipboard
val createdAt: Date? = null

Date of channel creation.

Link copied to clipboard
Link copied to clipboard

If users are allowed to add reactions to messages. Enabled by default.

Link copied to clipboard

Enables message threads. Enabled by default.

Link copied to clipboard
val maxMessageLength: Int = 5000

The max message length. 5000 by default.

Link copied to clipboard

A number of days or infinite. "Infinite" by default.

Link copied to clipboard
val muteEnabled: Boolean = true

Determines if users are able to mute other users. Enabled by default.

Link copied to clipboard

The name of the channel type must be unique per application

Link copied to clipboard
val pollsEnabled: Boolean = false

Determines if polls are enabled. Disabled by default.

Link copied to clipboard
Link copied to clipboard

Controls whether the chat shows how far you’ve read. Enabled by default.

Link copied to clipboard

Controls if messages should be searchable (this is a premium feature). Disabled by default.

Link copied to clipboard

Controls if typing indicators are shown. Enabled by default.

Link copied to clipboard
val updatedAt: Date? = null

Date of last channel update.

Link copied to clipboard

Allows image and file uploads within messages. Enabled by default.

Link copied to clipboard

Determines if URL enrichment enabled to show they as attachments. Enabled by default.