As you might have expereinced, when chat is moving fast but someone needs a message deleted or timedout/banned mods can sometimes missclick due to the fast moving chat, now while we do have the pause chat option this can still happen due to a flinch or a nudge from a pet or someone else, what I am suggesting is an undelete/restore function within the chat for mods.
If someone was banned by accident or timedout all their messages are purged, but how about when you undo the mistken action you have the option to restore that persons messages within the chat. The undelete would be for single line deletions that were done by accident, this would help get rid of that horrible feeling mods get when they do something by accident since they can fix it easily.
Please add this functionality, or have chat stop scrolling by default when you hover over the trash can on a message. Mistakes happen, and it's frustrating to have to explain to people who haven't done anything wrong that you accidentally deleted their message and you cannot restore it, so they'll have to retype it out from memory. It's a bad UX and a punishment for everyone.
Honestly don't know why this isn't already a feature.. Just make the delete message button change to a restore message button after a message is deleted.