1
0
Fork 0
mirror of synced 2024-05-18 19:42:28 +12:00

Correct what date to use/correct what colour to use

This commit is contained in:
Phxntxm 2017-08-05 14:50:12 -05:00
parent a6be874cb4
commit d7f7f326b8

View file

@ -106,12 +106,12 @@ class Stats:
if user is None:
user = ctx.message.author
embed = discord.Embed(colour=user.top_role.colour)
embed = discord.Embed(colour=user.colour)
fmt = "{} ({})".format(str(user), user.id)
embed.set_author(name=fmt, icon_url=user.avatar_url)
embed.add_field(name='Joined this server', value=user.joined_at.date(), inline=False)
embed.add_field(name='Joined Discord', value=user.joined_at.date(), inline=False)
embed.add_field(name='Joined Discord', value=user.created_at.date(), inline=False)
# Sort them based on the hierarchy, but don't include @everyone
roles = sorted([x for x in user.roles if not x.is_default()], reverse=True)