Escape Discord characters in edit summary

This commit is contained in:
Frisk 2018-12-26 14:21:05 +01:00
parent ad55b0f423
commit 567ac2e2c1

View file

@ -481,7 +481,7 @@ def webhook_formatter(action, STATIC, **params):
embed["url"] = link
if "desc" not in params:
params["desc"] = ""
embed["description"] = params["desc"]
embed["description"] = re.sub(r"(`|_|\*|~|<|>|{|})", "\\\\\\1", params["desc"], 0)
embed["color"] = random.randrange(1, 16777215) if colornumber is None else math.floor(colornumber)
embed["timestamp"] = STATIC["timestamp"]
if STATIC["tags"]: