fix GetMemberHoistedRole

This commit is contained in:
ouwou committed 2020-10-10 01:14:46 -04:00
1 parent a93230e692
commit 448efa6b97
1 file changed
+1 -1
+1 -1
View File
@@ -217,7 +217,7 @@ Snowflake DiscordClient::GetMemberHoistedRole(Snowflake guild_id, Snowflake user
for (const auto &id : data->Roles) {
auto *role = GetRole(id);
if (role != nullptr) {
if ((!with_color && role->IsHoisted) || role->Color != 0)
if (role->IsHoisted || (with_color && role->Color != 0))
roles.push_back(role);
}
}