-
-
Notifications
You must be signed in to change notification settings - Fork 731
Open
Labels
a: frontendRelated to output and formattingRelated to output and formattingl: 0 - beginnerp: 3 - lowLow PriorityLow Prioritystatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing featuresChanges or improvements to existing features
Description
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:
bot/bot/exts/utils/attachment_pastebin_uploader.py
Lines 128 to 136 in 2640aaa
| # 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
Assignees
Labels
a: frontendRelated to output and formattingRelated to output and formattingl: 0 - beginnerp: 3 - lowLow PriorityLow Prioritystatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing featuresChanges or improvements to existing features