From 1ecd03634c2e92599b8e69458317b7093bcdc418 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Wed, 26 Nov 2025 10:20:53 +0100 Subject: [PATCH] Note about Discord & channels See #281 --- alerts/service_backends/discord.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/alerts/service_backends/discord.py b/alerts/service_backends/discord.py index 966e5db..3dcff11 100644 --- a/alerts/service_backends/discord.py +++ b/alerts/service_backends/discord.py @@ -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)