From 06e2b7c64132cec326432ca7f5949b2492e1a697 Mon Sep 17 00:00:00 2001 From: "DavidCrompton1192@gmail.com" Date: Fri, 17 Mar 2023 23:28:11 -0400 Subject: [PATCH] Edit message properly --- handyhelper/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handyhelper/__init__.py b/handyhelper/__init__.py index 14269ab..a580875 100644 --- a/handyhelper/__init__.py +++ b/handyhelper/__init__.py @@ -60,10 +60,10 @@ async def summarize( await interaction.followup.send(f"Unable to find article: {article}") return - await interaction.followup.send(f"""Article Found: {resp['ref']} + msg = await interaction.followup.send(f"""Article Found: {resp['ref']} Parsing PDF...""") pdf = await getPDF(resp['pdf']) - await interaction.followup.edit_message(f"""Article Found: {resp['ref']} + await msg.edit(f"""Article Found: {resp['ref']} ``` {pdf[:1000]} ```""")