From 0de43e8142702deb7115e160f7d5f245cbff170e Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Mon, 19 Jun 2023 18:02:16 -0400 Subject: [PATCH] fixed list_permissions --- info/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info/info.py b/info/info.py index 55aa3f1..fb0ce9a 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, permissions: bool = False): + async def roleinfo(self, ctx, *, role: discord.Role, list_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 == False: + if list_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}")