diff options
| author | 2021-04-04 21:03:22 -0600 | |
|---|---|---|
| committer | 2021-04-04 21:03:22 -0600 | |
| commit | 508e400cca1d73a8693cd348886c1c7a8aac7725 (patch) | |
| tree | 0f193aa8d3ffc19c9793adbcc08452329082a406 | |
| parent | Ignore colourless roles in !user embed (diff) | |
Use Member.colour rather than a list comprehension for !user
| -rw-r--r-- | bot/exts/info/information.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index a8844fe29..5e2c4b417 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -284,9 +284,7 @@ class Information(Cog): embed.add_field(name=field_name, value=field_content, inline=False) embed.set_thumbnail(url=user.avatar_url_as(static_format="png")) - - role_colours = [role.colour for role in user.roles[1:] if role.colour != Colour.default()] - embed.colour = role_colours[-1] if role_colours else Colour.blurple() + embed.colour = user.colour if user.colour != Colour.default() else Colour.blurple() return embed |