From 92b0fd1cd31364e7fdd18d1d7001e4d9560428eb Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 04:22:55 -0500 Subject: [PATCH] now colors should work I think --- galaxy/galaxy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index a600a1a..ebf57d2 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -10,12 +10,13 @@ class Galaxy(commands.Cog): self.bot = bot @commands.command() + @commands.guild_only() async def roleinfo(self, ctx, role: discord.Role): """Gives information on a specific role.""" permissions = role.permissions color = re.sub('#',"",str(role.color)) colorcodelink = f"https://www.color-hex.com/color/{color}" - colorint = int(color) + colorint = role.color.value if permissions.administrator: embed = discord.Embed(color={colorint}, description="With Administrator") else: