fixes "invalid form body" from webhook
discord doesn't let "discord" exist in webhooks anymore. end all. I may have to add a special rule to have the bot post a message instead of a webhook service if someone has "discord" in their nick.master
parent
98bb443e94
commit
ca07be9b86
|
@ -31,8 +31,8 @@ defmodule Discordirc.WebhookService do
|
||||||
|
|
||||||
case DiscordAPI.create_webhook(
|
case DiscordAPI.create_webhook(
|
||||||
channel_id,
|
channel_id,
|
||||||
%{name: "discordirc hook", avatar: avatar},
|
%{name: "irc relay hook", avatar: avatar},
|
||||||
"discordirc proxy hook"
|
"irc relay hook"
|
||||||
) do
|
) do
|
||||||
{:ok, hook} ->
|
{:ok, hook} ->
|
||||||
case state.hooks do
|
case state.hooks do
|
||||||
|
|
Loading…
Reference in New Issue