aboutsummaryrefslogtreecommitdiff
path: root/code/cogs/status.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2025-01-20 23:39:09 -0600
committerParker <contact@pkrm.dev>2025-01-20 23:39:09 -0600
commit023ee141ebf437919a4c0f43ddee18aaefa4cbbc (patch)
tree4c20b24a13f1b817d36fbd0cf27a8db2e1ee20fb /code/cogs/status.py
parent8a6727c5f8dd8d8cb33c762a748eec8ee83d36d0 (diff)
Deferral fix
Diffstat (limited to 'code/cogs/status.py')
-rw-r--r--code/cogs/status.py8
1 files changed, 3 insertions, 5 deletions
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:
"""