ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.02k stars 63 forks source link

Feature request: Edit messages with s/e/d commands #312

Open Shywizz opened 1 year ago

Shywizz commented 1 year ago

By default in discord, if you make an error in your message you can correct it either by selecting it with the blue outline, or you can use sed-like subsitution It would be cool if s/e/d commands could proccesed as on the vanilla app, that way you could edit messages in the best way possible :P

craftxbox commented 1 year ago

I implemented this in my fork a while back. Unsure how much code has changed since but it may help as a reference to backport it: https://github.com/craftxbox/discordo/blob/main/ui/messages.go#L348 https://github.com/craftxbox/discordo/blob/main/ui/messages.go#L387