From b1b7118f27d0b85fd698e3a0dcdbd881ce744bdb Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Mon, 19 Jun 2023 18:00:52 -0400 Subject: [PATCH] changed how roleinfo works --- info/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info/info.py b/info/info.py index 2d4d9ab..55aa3f1 100644 --- a/info/info.py +++ b/info/info.py @@ -494,7 +494,7 @@ class Info(commands.Cog): @commands.command() @commands.guild_only() - async def roleinfo(self, ctx, *, role: discord.Role): + async def roleinfo(self, ctx, *, role: discord.Role, permissions: bool = False): """Gives information on a specific role.""" permissions = role.permissions if role.color.value == 0: @@ -505,7 +505,7 @@ class Info(commands.Cog): color = re.sub('#',"",str(role.color)) colorcodelink = f"https://www.color-hex.com/color/{color}" timestamp = int(datetime.timestamp(role.created_at)) - if permissions.administrator: + if permissions == False: embed = discord.Embed(title=f"{role.name}", color=colorint, description=f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** \n**Color:** [#{color}]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {role.managed}\n**Mentionable:** {role.mentionable}\n**Administrator:** {role.permissions.administrator}") else: embed = discord.Embed(title=f"{role.name}", color=colorint, description=f"**ID:** {role.id}\n**Mention:** {role.mention}\n**Creation Date:** \n**Color:** [#{color}]({colorcodelink})\n**Hoisted:** {role.hoist}\n**Position:** {role.position}\n**Managed:** {role.managed}\n**Mentionable:** {role.mentionable}\n**Administrator:** {role.permissions.administrator}")