Chat / Unreal
Current version: v3
Chat Unreal v3
Chat Unreal
Chat
Unreal
Home
/
Chat
/
Unreal
/
Users

Retrieve a list of banned or muted users

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;
    }
});