From 8bcd54af5b18aaffcd1815a13f1af76c200820df Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 04:29:23 -0500 Subject: [PATCH] changed colors --- galaxy/galaxy.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 8f8fd52..8bc53a5 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -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}" - 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: 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()