Bläddra i källkod

Fixing Perms Problems

BaumSplitter41 4 månader sedan
förälder
incheckning
2af54f9172
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      VPD_BOT/cogs/unit.py

+ 1 - 1
VPD_BOT/cogs/unit.py

@@ -76,7 +76,7 @@ class unit(commands.Cog):
         else:
             await ctx.respond("The selected unit does not exist!", ephemeral=True)
             return
-        if ctx.author == supervisor_role or ctx.author == head_unit_role:
+        if supervisor_role in ctx.author.roles or head_unit_role in ctx.author.roles:
             if unit_role in user.roles:
                 await user.remove_roles(unit_role)
                 await ctx.respond(f"The user {user.mention} has been removed from the unit successfully!", ephemeral=True)