Skip to content

Commit

Permalink
fixed reset points check to default_perms
Browse files Browse the repository at this point in the history
  • Loading branch information
loritsi committed Dec 28, 2024
1 parent aea842a commit 3ba215a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion levels.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ async def get_leaderboard(self, interaction: discord.Interaction, pages: int=1):
await interaction.response.send_message(leaderboard)

@discord.app_commands.command(name="reset_points", description="reset the points for the whole server")
@discord.app_commands.checks.has_permissions(manage_roles=True)
@discord.app_commands.default_permissions(manage_roles=True)
async def reset_points(self, interaction: discord.Interaction):
if interaction.guild is None:
await interaction.response.send_message("this command must be used in a server!")
Expand Down

0 comments on commit 3ba215a

Please sign in to comment.