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

escape par

parent 50e904c5
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,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 = strings.ReplaceAll(msg.Text, "`", "\\`")
msg.Text = strings.ReplaceAll(msg.Text, ".", "\\.")
msg.Text = strings.ReplaceAll(msg.Text, "!", "\\!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment