diff options
| author | 2020-02-06 21:46:45 +0100 | |
|---|---|---|
| committer | 2020-02-06 21:46:45 +0100 | |
| commit | 515b490fca1f151e654ff72a9fcf8f3113f239c3 (patch) | |
| tree | c6dc647733f5acf48f95ca9aaf5c602dfaeaabc4 | |
| parent | Roles cannot return None because everyone has the Developer role by default, ... (diff) | |
Remove some a lot of unneccesary newlines that arguably make it harder to read
| -rw-r--r-- | bot/cogs/information.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bot/cogs/information.py b/bot/cogs/information.py index 21e3cfc39..68614d2c4 100644 --- a/bot/cogs/information.py +++ b/bot/cogs/information.py @@ -45,7 +45,6 @@ class Information(Cog): colour=Colour.blurple(), description=role_string ) - embed.set_footer(text=f"Total roles: {len(roles)}") await ctx.send(embed=embed) @@ -75,23 +74,17 @@ class Information(Cog): parsed_roles.append(role) for role in parsed_roles: + h, s, v = colorsys.rgb_to_hsv(*role.colour.to_rgb()) + embed = Embed( title=f"{role.name} info", colour=role.colour, ) - embed.add_field(name="ID", value=role.id, inline=True) - embed.add_field(name="Colour (RGB)", value=f"#{role.colour.value:0>6x}", inline=True) - - h, s, v = colorsys.rgb_to_hsv(*role.colour.to_rgb()) - embed.add_field(name="Colour (HSV)", value=f"{h:.2f} {s:.2f} {v}", inline=True) - embed.add_field(name="Member count", value=len(role.members), inline=True) - embed.add_field(name="Position", value=role.position) - embed.add_field(name="Permission code", value=role.permissions.value, inline=True) await ctx.send(embed=embed) |