diff --git a/discord.go b/discord.go index 77fbd394694e75cdd8ce2383563cf235da410b73..009662bc19d0243e903fbcff08f9608eb337c201 100644 --- a/discord.go +++ b/discord.go @@ -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 {