changed colors
This commit is contained in:
parent
1925a22015
commit
8bcd54af5b
1 changed files with 5 additions and 2 deletions
|
@ -16,12 +16,15 @@ class Galaxy(commands.Cog):
|
|||
permissions = role.permissions
|
||||
color = re.sub('#',"",str(role.color))
|
||||
colorcodelink = f"https://www.color-hex.com/color/{color}"
|
||||
if role.color.value == 0:
|
||||
colorint = await self.bot.get_embed_color(None)
|
||||
else:
|
||||
colorint = role.color.value
|
||||
if permissions.administrator:
|
||||
embed = discord.Embed(color=colorint, description="With Administrator")
|
||||
else:
|
||||
embed = discord.Embed(color=colorint, description="Without Administrator")
|
||||
await ctx.send(embed=embed, content=f"{colorint}")
|
||||
await ctx.send(embed=embed)
|
||||
|
||||
|
||||
@commands.command()
|
||||
|
|
Loading…
Reference in a new issue