BaumSplitter41 hai 1 mes
pai
achega
96185556dc
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      VPD_BOT/main.py

+ 4 - 1
VPD_BOT/main.py

@@ -494,8 +494,9 @@ async def note(
     information: Option(str, required=True)  # type: ignore
 ):
     await ctx.defer(ephemeral=False)
+    team_role = ctx.guild.get_role(int(team_role_id))
 
-    if not team_role_id in ctx.author.roles:
+    if not team_role in ctx.author.roles:
         await ctx.followup.send("You don't have permissions to execute this command", ephemeral=True)
         return
     
@@ -764,6 +765,8 @@ async def update_users_periodically():
         
         await asyncio.sleep(60)  # Update every minute
 
+
+
 #_________________________________#
 #---------------------------------#
 #Run function