banUser

suspend fun GroupChannel.banUser(userId: String, description: String?, seconds: Int)

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

4.15.0

Parameters

userId

The user ID to ban.

description

The reason for the ban.

seconds

The duration of the ban in seconds.


suspend fun OpenChannel.banUser(userId: String, seconds: Int)

Bans a participant. Operators can ban participants from this channel. Banned participant 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

4.15.0

Parameters

userId

Participant ID (User ID) to ban.

seconds

Duration the banned User cannot enter this channel again.