forked from OpenGamers/abaddon
fix GetMemberHoistedRole
This commit is contained in:
@@ -217,7 +217,7 @@ Snowflake DiscordClient::GetMemberHoistedRole(Snowflake guild_id, Snowflake user
|
|||||||
for (const auto &id : data->Roles) {
|
for (const auto &id : data->Roles) {
|
||||||
auto *role = GetRole(id);
|
auto *role = GetRole(id);
|
||||||
if (role != nullptr) {
|
if (role != nullptr) {
|
||||||
if ((!with_color && role->IsHoisted) || role->Color != 0)
|
if (role->IsHoisted || (with_color && role->Color != 0))
|
||||||
roles.push_back(role);
|
roles.push_back(role);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user