From a5b76e8886c43f9373afe52c2803462dcf5b307e Mon Sep 17 00:00:00 2001 From: Dragon <200907890+DragonSenseiGuy@users.noreply.github.com> Date: Mon, 3 Nov 2025 18:49:11 -0500 Subject: Provide original context when DMing delete link for attachment paste upload (#3432) --- bot/exts/utils/attachment_pastebin_uploader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/exts/utils/attachment_pastebin_uploader.py b/bot/exts/utils/attachment_pastebin_uploader.py index 1ea74b509..d39c03f10 100644 --- a/bot/exts/utils/attachment_pastebin_uploader.py +++ b/bot/exts/utils/attachment_pastebin_uploader.py @@ -128,7 +128,10 @@ class AutoTextAttachmentUploader(commands.Cog): # Send the user a DM with the delete link for the paste. # The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a # preview, thereby deleting the paste - await message.author.send(content=f"[Click here](<{paste_response.removal}>) to delete your recent paste.") + await message.author.send( + f"[Click here](<{paste_response.removal}>) to delete the pasted attachment" + f" contents copied from [your message](<{message.jump_url}>)" + ) # Edit the bot message to contain the link to the paste. await bot_reply.edit(content=f"[Click here]({paste_response.link}) to see this code in our pastebin.") -- cgit v1.2.3