diff --git a/common/utils.py b/common/utils.py index d6534b26..a3b8a7c6 100644 --- a/common/utils.py +++ b/common/utils.py @@ -224,6 +224,8 @@ def discord_send(channel, content, **args) -> bool: dw = settings.DISCORD_WEBHOOKS.get(channel) if not dw: return False + if "thread_name" in args: + args["thread_name"] = args["thread_name"][:99] webhook = SyncWebhook.from_url(dw) webhook.send(content, **args) return True