From e3043d665497a0a30fdca486f975d7a5bba52fd3 Mon Sep 17 00:00:00 2001
From: RandomChars <random@chars.jp>
Date: Fri, 7 Jan 2022 08:58:36 +0900
Subject: [PATCH] escape par

---
 discord.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/discord.go b/discord.go
index 009662b..95f530f 100644
--- a/discord.go
+++ b/discord.go
@@ -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, "!", "\\!")
-- 
GitLab