Skip to content

Commit

Permalink
fix: delete until here command is now visible only to people who can …
Browse files Browse the repository at this point in the history
…use it
  • Loading branch information
Zalk0 committed Mar 20, 2024
1 parent 6b278f4 commit b614a6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async def pin(interaction: discord.Interaction[ChouetteBot], message: discord.Me

# Make a context menu command to delete messages
@app_commands.guild_only
@app_commands.default_permissions(manage_messages=True)
@app_commands.checks.bot_has_permissions(
manage_messages=True, read_message_history=True, read_messages=True
)
Expand Down

0 comments on commit b614a6f

Please sign in to comment.