fix: Remove manual command syncing and let Red-DiscordBot handle it

This commit is contained in:
pacnpal
2024-11-15 00:30:45 +00:00
parent f6edef4658
commit fa4c2ec208
2 changed files with 2 additions and 5 deletions

View File

@@ -17,8 +17,8 @@ class VideoArchiverCommands(commands.Cog):
async def cog_load(self) -> None:
"""Initialize commands when cog loads"""
# Ensure all commands are synced for slash command support
await self.bot.sync_commands()
# Red-DiscordBot handles command syncing automatically
pass
@commands.hybrid_group(name="videoarchiver", aliases=["va"])
@commands.guild_only()

View File

@@ -124,9 +124,6 @@ class VideoArchiver(VideoArchiverCommands):
# Wait for initialization to complete
await asyncio.wait_for(self.ready.wait(), timeout=30)
# Sync commands for slash command support
await self.bot.sync_commands()
except asyncio.TimeoutError:
await self._cleanup()
raise ProcessingError("Cog initialization timed out")