mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -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:
|
async def cog_load(self) -> None:
|
||||||
"""Initialize commands when cog loads"""
|
"""Initialize commands when cog loads"""
|
||||||
# Ensure all commands are synced for slash command support
|
# Red-DiscordBot handles command syncing automatically
|
||||||
await self.bot.sync_commands()
|
pass
|
||||||
|
|
||||||
@commands.hybrid_group(name="videoarchiver", aliases=["va"])
|
@commands.hybrid_group(name="videoarchiver", aliases=["va"])
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
|
|||||||
@@ -124,9 +124,6 @@ class VideoArchiver(VideoArchiverCommands):
|
|||||||
# Wait for initialization to complete
|
# Wait for initialization to complete
|
||||||
await asyncio.wait_for(self.ready.wait(), timeout=30)
|
await asyncio.wait_for(self.ready.wait(), timeout=30)
|
||||||
|
|
||||||
# Sync commands for slash command support
|
|
||||||
await self.bot.sync_commands()
|
|
||||||
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
await self._cleanup()
|
await self._cleanup()
|
||||||
raise ProcessingError("Cog initialization timed out")
|
raise ProcessingError("Cog initialization timed out")
|
||||||
|
|||||||
Reference in New Issue
Block a user