add

abstract fun add(fields: Map<String, String>)

Adds specified fields to the instance. If requested on a thread that's newly created, the fields may be lost until a first message is sent.

The client should always ensure thread (if applicable) exists before making changes to it. Threads are generally created by sending a first message to it.

Throws

if a field in fields is invalid for any reason.

if a field in fields is not defined by the channel configuration.