muteUser

fun muteUser(user: User, handler: CompletionHandler?)

Mutes User. Muted User's messages are no longer delivered to current User.

Since

3.0.51

Parameters

user

User to mute.

handler

Callback handler.


fun muteUser(userId: String, handler: CompletionHandler?)

Mutes User. Muted User's messages are no longer delivered to current User.

Since

3.0.51

Parameters

userId

User ID to mute.

handler

Callback handler.


fun muteUser(user: User, description: String?, seconds: Int, handler: CompletionHandler?)

Mutes User. Muted User's messages are no longer delivered to current User. If you want to mute the user indefinitely, pass -1 to seconds as the argument. Or you can use muteUser.

Since

3.0.79

Parameters

user

User to mute.

description

Description.

seconds

Duration for the mute.

handler

Callback handler.


fun muteUser(userId: String, description: String?, seconds: Int, handler: CompletionHandler?)

Mutes User. Muted User's messages are no longer delivered to current User. If you want to mute the user indefinitely, pass -1 to seconds as the argument. Or you can use muteUser.

Since

3.0.79

Parameters

userId

User ID to mute.

description

Description.

seconds

Duration for the mute.

handler

Callback handler.