Commit 5c38bc178f63ae8046d3156270f1a6ead0ad74ce

Thomas de Grivel 2022-02-04T12:45:37

remove stacktrace from error messages in discord

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lib/discord.ex b/lib/discord.ex
index 4783aac..863fcee 100644
--- a/lib/discord.ex
+++ b/lib/discord.ex
@@ -25,9 +25,8 @@ defmodule Discord do
     message = %{content: """
 URI : `#{req_path}`
 User : `#{user}`
-```#{params.kind} #{reason}
-
-#{stack}```
+#{params.kind}
+```#{reason}```
 """}
     IO.inspect(message)
     json = Jason.encode!(message)