From 023ee141ebf437919a4c0f43ddee18aaefa4cbbc Mon Sep 17 00:00:00 2001 From: Parker Date: Mon, 20 Jan 2025 23:39:09 -0600 Subject: Deferral fix --- code/cogs/status.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'code/cogs/status.py') diff --git a/code/cogs/status.py b/code/cogs/status.py index 8d3e604..3a64146 100644 --- a/code/cogs/status.py +++ b/code/cogs/status.py @@ -20,7 +20,7 @@ class Status(commands.Cog): async def status(self, interaction: discord.Interaction) -> None: """Get the status of the movies you have requested""" # Defer the response - await interaction.response.defer() + await interaction.response.defer(ephemeral=True) db = sqlite3.connect("data/cordarr.db") cursor = db.cursor() @@ -42,9 +42,7 @@ class Status(commands.Cog): ), color=0xD01B86, ) - return await interaction.response.send_message( - embed=embed, ephemeral=True - ) + return await interaction.followup.send(embed=embed, ephemeral=True) # Create template embed embed = discord.Embed( @@ -77,7 +75,7 @@ class Status(commands.Cog): embed.description += radarr_desc + sonarr_desc + non_queue_desc # Send the follow-up message - await interaction.followup.send(embed=embed, ephemeral=True) + await interaction.edit_original_response(embed=embed, ephemeral=True) def unpack_content(self, requested_content: list) -> tuple: """ -- cgit v1.2.3-70-g09d2