testing something
This commit is contained in:
parent
4d336afb74
commit
c153c45f5e
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,8 @@ class Galaxy(commands.Cog):
|
||||||
colorint = member.color.value
|
colorint = member.color.value
|
||||||
color = re.sub('#',"",str(member.color))
|
color = re.sub('#',"",str(member.color))
|
||||||
colorcodelink = f"https://www.color-hex.com/color/{color}"
|
colorcodelink = f"https://www.color-hex.com/color/{color}"
|
||||||
|
roles_slice = slice(0, -1, 2)
|
||||||
|
roles = member.roles[roles_slice]
|
||||||
avatarurl = str(member.avatar_url)
|
avatarurl = str(member.avatar_url)
|
||||||
timestamp_create = int(datetime.timestamp(member.created_at))
|
timestamp_create = int(datetime.timestamp(member.created_at))
|
||||||
timestamp_join = int(datetime.timestamp(member.joined_at))
|
timestamp_join = int(datetime.timestamp(member.joined_at))
|
||||||
|
@ -30,7 +32,7 @@ class Galaxy(commands.Cog):
|
||||||
embed.add_field(name="Roles", value=f"{member.roles.mention}")
|
embed.add_field(name="Roles", value=f"{member.roles.mention}")
|
||||||
embed.set_thumbnail(url=f"{avatarurl}")
|
embed.set_thumbnail(url=f"{avatarurl}")
|
||||||
embed.set_footer(text=f"ID: {member.id}")
|
embed.set_footer(text=f"ID: {member.id}")
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(contents=f"{roles}")
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
|
|
Loading…
Reference in a new issue