testing color code links
This commit is contained in:
parent
993d07d013
commit
9469c92a53
1 changed files with 2 additions and 1 deletions
|
@ -12,9 +12,10 @@ class Galaxy(commands.Cog):
|
|||
@commands.command()
|
||||
async def roleinfo(self, ctx, role: discord.Role):
|
||||
"""Gives information on a specific role."""
|
||||
hexcolor = str(role.color)
|
||||
color = re.sub('#',"",str(role.color))
|
||||
colorcodelink = f"https://www.color-hex.com/color/{color}"
|
||||
await ctx.send(content=f"{color}")
|
||||
await ctx.send(content=f"{colorcodelink}")
|
||||
|
||||
|
||||
@commands.command()
|
||||
|
|
Loading…
Reference in a new issue