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
Rachel Fae Fox 2022-11-10 10:31:02 -05:00
parent 98bb443e94
commit ca07be9b86
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ defmodule Discordirc.WebhookService do
case DiscordAPI.create_webhook(
channel_id,
%{name: "discordirc hook", avatar: avatar},
"discordirc proxy hook"
%{name: "irc relay hook", avatar: avatar},
"irc relay hook"
) do
{:ok, hook} ->
case state.hooks do