Jelajahi Sumber

Fixing Perms Problems

BaumSplitter41 4 bulan lalu
induk
melakukan
2af54f9172
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)