Note about Discord & channels

See #281
This commit is contained in:
Klaas van Schelven
2025-11-26 10:20:53 +01:00
parent e6096a0472
commit 1ecd03634c

View File

@@ -26,6 +26,10 @@ def url_valid_according_to_discord(url):
class DiscordConfigForm(forms.Form):
webhook_url = forms.URLField(required=True)
# Discord does not appear to support multi-channel webhooks; although this is not spelled out explicitly, the
# section at https://discord.com/developers/docs/resources/webhook#execute-webhook does not have an attr for
# "channel". (the word channel appears on that page, but that's for the _creation_ of new webhooks).
def __init__(self, *args, **kwargs):
config = kwargs.pop("config", None)