Chat SDKs iOS v4
Chat SDKs iOS
Chat SDKs
iOS
Version 4
Ban and unban a user
Copy link
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: Instead of the
banUser(_:seconds:description:completionHandler:)
andunbanUser(_:completionHandler:)
methods, you can usebanUser(userId:seconds:description:completionHandler:)
andunbanUser(userId:completionHandler:)
, as they can perform the same action.