diff --git a/src/run.py b/src/run.py index 8507786..5e39b9c 100644 --- a/src/run.py +++ b/src/run.py @@ -81,7 +81,7 @@ class Bot(commands.Bot): # Sync slash commands if self.config_mode == "prod": - await bot.tree.clear_commands(guild=None) + await self.tree.clear_commands(guild=None) await self.tree.sync() else: self.tree.copy_global_to(guild=discord.Object(id=self.guild_id))