|
@@ -494,8 +494,9 @@ async def note(
|
|
|
information: Option(str, required=True) # type: ignore
|
|
information: Option(str, required=True) # type: ignore
|
|
|
):
|
|
):
|
|
|
await ctx.defer(ephemeral=False)
|
|
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)
|
|
await ctx.followup.send("You don't have permissions to execute this command", ephemeral=True)
|
|
|
return
|
|
return
|
|
|
|
|
|
|
@@ -764,6 +765,8 @@ async def update_users_periodically():
|
|
|
|
|
|
|
|
await asyncio.sleep(60) # Update every minute
|
|
await asyncio.sleep(60) # Update every minute
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
#_________________________________#
|
|
#_________________________________#
|
|
|
#---------------------------------#
|
|
#---------------------------------#
|
|
|
#Run function
|
|
#Run function
|