From fa4c2ec208bde3e02040788e7a2e9d9eec5fd834 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Fri, 15 Nov 2024 00:30:45 +0000 Subject: [PATCH] fix: Remove manual command syncing and let Red-DiscordBot handle it --- videoarchiver/commands.py | 4 ++-- videoarchiver/video_archiver.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/videoarchiver/commands.py b/videoarchiver/commands.py index 93b01dc..ab1156b 100644 --- a/videoarchiver/commands.py +++ b/videoarchiver/commands.py @@ -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() diff --git a/videoarchiver/video_archiver.py b/videoarchiver/video_archiver.py index 70515d3..7067bff 100644 --- a/videoarchiver/video_archiver.py +++ b/videoarchiver/video_archiver.py @@ -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")