From 803cec54d68f030fffc2b927e6be2bbbb2db735f Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Tue, 28 Oct 2025 16:29:39 +0100 Subject: [PATCH] use correct object to remove synced commands --- src/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))