changed colors

This commit is contained in:
Seaswimmer 2023-02-28 04:29:23 -05:00
parent 1925a22015
commit 8bcd54af5b

View file

@ -16,12 +16,15 @@ class Galaxy(commands.Cog):
permissions = role.permissions permissions = role.permissions
color = re.sub('#',"",str(role.color)) color = re.sub('#',"",str(role.color))
colorcodelink = f"https://www.color-hex.com/color/{color}" colorcodelink = f"https://www.color-hex.com/color/{color}"
colorint = role.color.value if role.color.value == 0:
colorint = await self.bot.get_embed_color(None)
else:
colorint = role.color.value
if permissions.administrator: if permissions.administrator:
embed = discord.Embed(color=colorint, description="With Administrator") embed = discord.Embed(color=colorint, description="With Administrator")
else: else:
embed = discord.Embed(color=colorint, description="Without Administrator") embed = discord.Embed(color=colorint, description="Without Administrator")
await ctx.send(embed=embed, content=f"{colorint}") await ctx.send(embed=embed)
@commands.command() @commands.command()