Skip to content
Snippets Groups Projects
Commit 50e904c5 authored by Ophestra's avatar Ophestra
Browse files

escape ~

parent 02ae0817
No related branches found
No related tags found
No related merge requests found
......@@ -161,6 +161,7 @@ func discordHandleCreate(session *discordgo.Session, create *discordgo.MessageCr
msg.Text = strings.ReplaceAll(msg.Text, "`", "\\`")
msg.Text = strings.ReplaceAll(msg.Text, ".", "\\.")
msg.Text = strings.ReplaceAll(msg.Text, "!", "\\!")
msg.Text = strings.ReplaceAll(msg.Text, "~", "\\~")
msg.Text = discordMakeHeader(create.Author) + msg.Text
for i, attachment := range create.Message.Attachments {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment