chatgpt-discord icon indicating copy to clipboard operation
chatgpt-discord copied to clipboard

Support message editing / retries by replying to self

Open jmpaz opened this issue 2 years ago • 1 comments

Where ChatGPT really shines is in the context of dialog, and in the web client, the ability to retry and edit messages – going back at any time to an earlier point to reword a prompt.

Appreciate your work and polish so far! Excited to use this over the telegram client as I'm more of a discord native, and organizing conversations across threads and servers is a joy. But without the ability to modify my previous messages, I can't really use this bot over the web version for more complex prompts yet.

Suggestion

Perhaps /retry and /edit commands would be appropriate:

  • If a user uses /edit by itself, the sent message will be used as the input for an edit of the previously sent message
  • Same as above if a user replies to a message with an @bot mention plus the /edit command; with /retry, resends the message from that point in the conversation (same as clicking edit in the web interface and clicking "save & send")

Example case: image

In this basic example, the message "what time is it?" would be replaced with the text following /edit and sent through with the "save & send" button.

assuming they're from the same ChatGPT thread, messages should be editable at any point in the conversation, as they are in the web version. With this feature, 90%+ of my ChatGPT usage would be via this bot :)

jmpaz avatar Dec 10 '22 20:12 jmpaz

Would accept a PR for this!

m1guelpf avatar Dec 11 '22 02:12 m1guelpf