/ SDKs / Unreal
SDKs
Chat SDKs Unreal v3
Chat SDKs Unreal
Chat SDKs
Unreal
Version 3

Retrieve a list of banned or muted users

Copy link

By creating a query shown below, you can get a list of banned or muted users in an open channel. This query only works on open channels with registered operators.

// Retrieving a list of banned users.
SBDUserListQuery* query = openChannel->CreateBannedUserListQuery();

query->LoadNextPage([](const vector<SBDUser>& users, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});

// Retrieving a list of muted users.
SBDUserListQuery* query = openChannel->CreateMutedUserListQuery();

query->LoadNextPage([](const vector<SBDUser>& users, SBDError* error) {
    if (error != nullptr) {
        // Handle error.
        return;
    }
});