muteUser

fun muteUser(userId: String, timeout: Int? = null): Call<Mute>

Mutes a user. Messages from muted users will not trigger push notifications. By default, mutes stay in place indefinitely until the user removes it. However, you can optionally set a mute timeout. Triggers notification.mutes_updated event.

Return

Executable async Call responsible for muting a user.

Parameters

userId

The user id to mute.

timeout

The timeout in minutes until the mute is expired.

See also