From e1d65ffcd0f90d6ba5c9c8bd0bc2874841d41f99 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Sat, 16 Nov 2024 02:11:44 +0000 Subject: [PATCH] massage --- videoarchiver/core/base.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/videoarchiver/core/base.py b/videoarchiver/core/base.py index bb1e3f4..1db70bf 100644 --- a/videoarchiver/core/base.py +++ b/videoarchiver/core/base.py @@ -476,7 +476,13 @@ class VideoArchiver(GroupCog): async def show_settings(self, ctx: Context): """Show current archiver settings.""" try: + # Defer the response immediately to prevent interaction timeout + if hasattr(ctx, 'interaction') and ctx.interaction: + await ctx.defer() + embed = await self.config_manager.format_settings_embed(ctx.guild) + + # Use the helper method to handle the response await self._handle_response(ctx, embed=embed) except Exception as e: logger.error(f"Error showing settings: {e}")