diff --git a/bot.py b/bot.py index 020ef5d..a83ca75 100644 --- a/bot.py +++ b/bot.py @@ -536,6 +536,11 @@ class TTSBot(commands.Bot): sync_count = 0 for guild in self.guilds: try: + # Copy global commands to this guild before syncing + # This is necessary for guild-specific command registration + self.tree.copy_global_to(guild=discord.Object(guild.id)) + print(f" 📋 Copied global commands to guild: {guild.name}") + synced = await self.tree.sync(guild=discord.Object(guild.id)) print(f" ✓ Synced {len(synced)} commands to guild: {guild.name}") for cmd in synced: