mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
fix: Remove manual command syncing and let Red-DiscordBot handle it
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user