bot icon indicating copy to clipboard operation
bot copied to clipboard

Remove or update code snippets on message edit

Open bast0006 opened this issue 5 years ago • 2 comments

At the moment, posting a link to github causes the bot to respond with a manually performed codeblock snippet of the contents linked. However, if the user edits their message to change the link, the contents of the embed do not change, and the user has to re-send their message to get updated contents.

We've previously implemented similar behavior for the Eval cog, with a refresh reaction. However, in this case, because the response is automatic and not derived directly from user interaction I think it makes sense to automatically keep the contents "up to date" with the origin message. If the link is edited, we edit our message, or if the link is removed, we remove our message.

We should probably still keep the trashcan reaction so users can delete the response independently of this.

bast0006 avatar Sep 01 '21 10:09 bast0006

This seems fine to me, though i'm not 100% sure it's worth the added complexity for a fairly rare case. I don't mind too much either way so if someone else vouches for this being a useful feature I think it would be ok to add.

wookie184 avatar Apr 14 '24 15:04 wookie184

Given this feature is being used less I don't know if the added complexity is worth it. We still offer users the link to delete it and they can resend if they need to fundamentally change what they linked to.

jb3 avatar Jul 22 '25 20:07 jb3