diff options
author | Parker <contact@pkrm.dev> | 2025-01-20 22:53:37 -0600 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2025-01-20 22:53:37 -0600 |
commit | 7092bd81c71c92296724bfcc5a6a54dac07727c1 (patch) | |
tree | 94fd0d3fa4de9a83152174ddc493e8b3e210c093 /code | |
parent | 07d449a4fdcf413cf111db8ad505544dd0c4d1bd (diff) |
Defer
Diffstat (limited to 'code')
-rw-r--r-- | code/cogs/status.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/code/cogs/status.py b/code/cogs/status.py index ab18aff..90d0c8b 100644 --- a/code/cogs/status.py +++ b/code/cogs/status.py @@ -19,6 +19,9 @@ class Status(commands.Cog): @app_commands.command() async def status(self, interaction: discord.Interaction) -> None: """Get the status of the movies you have requested""" + # Defer the response + await interaction.response.defer() + db = sqlite3.connect("data/cordarr.db") cursor = db.cursor() cursor.execute( @@ -73,6 +76,7 @@ class Status(commands.Cog): embed.description += radarr_desc + sonarr_desc + non_queue_desc + # Send the embed await interaction.response.send_message(embed=embed, ephemeral=True) def unpack_content(self, requested_content: list) -> tuple: |