/ SDKs / Unity
SDKs
Chat SDKs Unity v4
Chat SDKs Unity
Chat SDKs
Unity
Version 4

Retrieve a list of banned users

Copy link

You can create a query to retrieve a list of banned users in both open and group channels. Only users registered as channel operators may use the following code.

SbBannedUserListQueryParams queryParams = new SbBannedUserListQueryParams();
SbBannedUserListQuery query = channel.CreateBannedUserListQuery(queryParams);

query.LoadNextPage((inUsers, inError) =>
{
    if (inError != null)
    {
        return; // Handle error.
    }
});