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