Skip to content
This repository was archived by the owner on Sep 29, 2020. It is now read-only.

Commit f525a2d

Browse files
committed
DM the user their deleted message
As a courtesy, we'll DM the user the message that was deleted, that way they aren't upset that they'll have to retype their message.
1 parent 5504392 commit f525a2d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

IRC-Relay/Program.cs

+6
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ await messageParam.Channel.SendMessageAsync(messageParam.Author.Mention + ": Too
116116
" code blocks, please use \\`\\`\\` to open & close the codeblock." +
117117
"\nYour message has been deleted and was not relayed to IRC. Please try again.");
118118
await messageParam.DeleteAsync();
119+
120+
await messageParam.Author.SendMessageAsync("To prevent you from having to re-type your message,"
121+
+ " here's what you tried to send: \n ```"
122+
+ messageParam.Content
123+
+ "```");
124+
119125
return;
120126
}
121127

0 commit comments

Comments
 (0)