aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-05-31 16:50:01 +0100
committerGravatar Joe Banks <[email protected]>2025-05-31 16:50:39 +0100
commit95c7aa5d9249df3c9a9f55ab70a0fe0300b9a369 (patch)
tree0586211631483ca25b9b878ff94b56d8b07ee184
parentAdd webhook thread ID to form model (diff)
Use thread_id for webhook execute on submission
-rw-r--r--backend/routes/forms/submit.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/routes/forms/submit.py b/backend/routes/forms/submit.py
index 01c32cc..869aec7 100644
--- a/backend/routes/forms/submit.py
+++ b/backend/routes/forms/submit.py
@@ -334,6 +334,9 @@ class SubmitForm(Route):
"username": form.name or "Python Discord Forms",
}
+ if form.webhook.thread_id:
+ hook["thread_id"] = form.webhook.thread_id
+
# Set hook message
message = form.webhook.message
if message: