Commit dbc0b6cab57b9c049625a07c372a91f8a942fd0b

Thomas de Grivel 2022-02-03T12:12:43

fix

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/discord.ex b/lib/discord.ex
index ee1615a..0af48cb 100644
--- a/lib/discord.ex
+++ b/lib/discord.ex
@@ -8,7 +8,7 @@ defmodule Discord do
     else
       inspect(params.reason)
     end
-    stack = Stack.to_string(stack)
+    stack = Stack.to_string(params.stack)
     message = %{content: "```#{params.kind} #{reason}\n\n#{stack}```"}
     json = Jason.encode!(message)
     HTTPoison.post(url, json, [{"Content-Type", "application/json"}])