mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
use correct object to remove synced commands
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user