Skip to content

Provide context when dming delete link from paste uploader #3422

@onerandomusername

Description

@onerandomusername

In the following line, it would be helpful to provide the context to the end-user regarding where this message was uploaded. This can be done with adding a simple [Context](message.url) where message.url is a link to either the user's sent message or the replied message involving the paste link. I think for this case, it makes sense to provide a context url to the replied message.

It is this segment of lines that need to be modified:

# 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.")
# 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.")
await bot_reply.clear_reactions()
await bot_reply.add_reaction(DELETE_EMOJI)

Metadata

Metadata

Labels

a: frontendRelated to output and formattingl: 0 - beginnerp: 3 - lowLow Prioritystatus: approvedThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions