Correct what date to use/correct what colour to use
This commit is contained in:
parent
a6be874cb4
commit
d7f7f326b8
|
@ -106,12 +106,12 @@ class Stats:
|
||||||
if user is None:
|
if user is None:
|
||||||
user = ctx.message.author
|
user = ctx.message.author
|
||||||
|
|
||||||
embed = discord.Embed(colour=user.top_role.colour)
|
embed = discord.Embed(colour=user.colour)
|
||||||
fmt = "{} ({})".format(str(user), user.id)
|
fmt = "{} ({})".format(str(user), user.id)
|
||||||
embed.set_author(name=fmt, icon_url=user.avatar_url)
|
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 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
|
# 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)
|
roles = sorted([x for x in user.roles if not x.is_default()], reverse=True)
|
||||||
|
|
Loading…
Reference in a new issue