Operators of an open or group channel can remove any users that behave inappropriately in the channel using the ban feature. A banned user is immediately kicked out of the channel, but allowed to participate in the channel again after a set period of time has passed. Operators can ban and unban users using the following code.
Note: For both open and group channels, you can also pass the unique ID of a user as a parameter instead of
USERto ban or unban using the
unbanUser()methods. These methods perform the same actions as the