From 774a9f9f692e3ea3e30f143e942e6feec6cad319 Mon Sep 17 00:00:00 2001 From: "airo.pi_" <47398145+AiroPi@users.noreply.github.com> Date: Sat, 30 Mar 2024 03:21:14 +0100 Subject: [PATCH] add is_me for sync_tree --- src/cogs/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cogs/admin.py b/src/cogs/admin.py index 5ca50d1..9ab9445 100644 --- a/src/cogs/admin.py +++ b/src/cogs/admin.py @@ -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()