banUser

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

Bans a member. Operators can ban members from this channel. Banned member is kicked out of this channel and cannot enter during the specified seconds. If you want to ban the user indefinitely, pass -1 to seconds as the argument.

Since

3.0.51

Parameters

user

Member to ban.

description

Description

seconds

Duration the banned User cannot enter this channel again.

handler

Callback handler.


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

Bans a member. Operators can ban members from this channel. Banned member is kicked out of this channel and cannot enter during the specified seconds. If you want to ban the user indefinitely, pass -1 to seconds as the argument.

Since

3.0.51

Parameters

userId

Member ID (User ID) to ban.

description

Description

seconds

Duration the banned User cannot enter this channel again.

handler

Callback handler.