Commit 3bd88a85a5b7a6f4bd62b0a1df0583cefff92cc7

Thomas de Grivel 2022-02-03T07:36:37

wip discord

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/discord.ex b/lib/discord.ex
index caae729..9feadb4 100644
--- a/lib/discord.ex
+++ b/lib/discord.ex
@@ -5,6 +5,6 @@ defmodule Discord do
     url = "/channels/#{channel}/messages"
     message = %{content: inspect(params)}
     json = Jason.encode!(message)
-    HTTPoison.post url json [{"Content-Type", "application/json"}]
+    HTTPoison.post(url, json, [{"Content-Type", "application/json"}])
   end
 end