mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
fix GetMemberHoistedRole
This commit is contained in:
1 parent
a93230e692
commit
448efa6b97
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user