ban User
Deprecated
As of 4.17.0, replaced with awaitBanUser(userId, description, seconds).
Replace with
awaitBanUser(userId, description, seconds)
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
The user ID to ban.
The reason for the ban.
The duration of the ban in seconds.
Deprecated
As of 4.17.0, replaced with awaitBanUser(userId, seconds).
Replace with
awaitBanUser(userId, seconds)
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
Participant ID (User
ID) to ban.
Duration the banned User
cannot enter this channel again.