testing color code links

This commit is contained in:
Seaswimmer 2023-02-28 04:15:51 -05:00
parent 993d07d013
commit 9469c92a53

View file

@ -12,9 +12,10 @@ class Galaxy(commands.Cog):
@commands.command() @commands.command()
async def roleinfo(self, ctx, role: discord.Role): async def roleinfo(self, ctx, role: discord.Role):
"""Gives information on a specific role.""" """Gives information on a specific role."""
hexcolor = str(role.color)
color = re.sub('#',"",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"{color}")
await ctx.send(content=f"{colorcodelink}")
@commands.command() @commands.command()