Skip to content

Commit

Permalink
add is_me for sync_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
AiroPi committed Mar 30, 2024
1 parent 8d2cf07 commit 774a9f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cogs/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ async def extension_autocompleter(self, inter: Interaction, current: str) -> lis

@app_commands.command()
@app_commands.guilds(config.support_guild_id)
@is_me
async def sync_tree(self, inter: Interaction):
await inter.response.defer()
await self.bot.sync_tree()
Expand Down

0 comments on commit 774a9f9

Please sign in to comment.