Hash :
3bd88a85
Author :
Thomas de Grivel
Date :
2022-02-03T07:36:37
defmodule Discord do
def error(params) do
channel = Application.get_env(:kmxgit, :discord_errors_channel)
url = "/channels/#{channel}/messages"
message = %{content: inspect(params)}
json = Jason.encode!(message)
HTTPoison.post(url, json, [{"Content-Type", "application/json"}])
end
end