From 8da715190de8699311cd817a2c10fe6f3c0ea564 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 28 Feb 2023 04:19:58 -0500 Subject: [PATCH] lets see if this works! --- galaxy/galaxy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index d141917..ba75b77 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -12,10 +12,14 @@ class Galaxy(commands.Cog): @commands.command() 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}" - await ctx.send(content=f"{color}") - await ctx.send(content=f"{colorcodelink}") + if permissions.administrator: + embed = discord.Embed(color={color}, content="With Administrator") + else: + embed = discord.Embed(color={color}, content="Without Administrator") + await ctx.send(embed=embed) @commands.command()