By using the CreateBlockedUserListQuery() method, you can retrieve a list of all or specific blocked users within your Sendbird application. The LoadNextPage() method returns a list of SBDUser objects containing information on blocked users.
SBDUserListQuery* query = SBDMain::CreateBlockedUserListQuery();
query->LoadNextPage([](const vector<SBDUser>& users, SBDError* error) {
if (error != nullptr) {
// Handle error.
return;
}
// A list of blocked users is successfully retrieved.
// Through the users parameter of the handler callback function,
// you can access the data of each blocked user from the result list that the Sendbird server has passed to the handler callback function.
});