banUser

fun banUser(userId: String, reason: String? = null, timeout: Int? = null)

Bans the given user inside this channel.

Parameters

userId

The ID of the user to be banned.

reason

The reason for banning the user.

timeout

The period of time for which the user will be banned, expressed in minutes. A null value signifies that the user will be banned for an indefinite time.