use correct object to remove synced commands

This commit is contained in:
leander committed 2025-10-28 16:29:39 +01:00
1 parent cd3ee39e3f
commit 803cec54d6
1 file changed
+1 -1
+1 -1
View File
@@ -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))