Skip to content

Commit a5b76e8

Browse files
Provide original context when DMing delete link for attachment paste upload (#3432)
1 parent d992b5e commit a5b76e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bot/exts/utils/attachment_pastebin_uploader.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ async def on_message(self, message: discord.Message) -> None:
128128
# Send the user a DM with the delete link for the paste.
129129
# The angle brackets around the remove link are required to stop Discord from visiting the URL to produce a
130130
# preview, thereby deleting the paste
131-
await message.author.send(content=f"[Click here](<{paste_response.removal}>) to delete your recent paste.")
131+
await message.author.send(
132+
f"[Click here](<{paste_response.removal}>) to delete the pasted attachment"
133+
f" contents copied from [your message](<{message.jump_url}>)"
134+
)
132135

133136
# Edit the bot message to contain the link to the paste.
134137
await bot_reply.edit(content=f"[Click here]({paste_response.link}) to see this code in our pastebin.")

0 commit comments

Comments
 (0)