Quellcode durchsuchen

Fixing syntax errors in promotion and demotion commands.

BaumSplitter41 vor 4 Monaten
Ursprung
Commit
6f975b0a44
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      VPD_BOT/cogs/promotion.py

+ 2 - 2
VPD_BOT/cogs/promotion.py

@@ -43,9 +43,9 @@ class promotion(commands.Cog):
         #department2_supervisor_role = server.get_role(department2_supervisor_role_id)
 
         #Command implementation
-        if ctx.author.roles.contains(department1_supervisor_role):
+        if department1_supervisor_role in ctx.author.roles:
             ranks = department1_ranks
-        #elif ctx.author.roles.contains(department2_supervisor_role):
+        #elif department2_supervisor_role in ctx.author.roles:
             #ranks = department2_ranks
         else:
             await ctx.respond("You do not have permission to use this command!", ephemeral=True)