Skip to content

Commit 95c7aa5

Browse files
committed
Use thread_id for webhook execute on submission
1 parent c4d3bfd commit 95c7aa5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/routes/forms/submit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ async def send_submission_webhook(
334334
"username": form.name or "Python Discord Forms",
335335
}
336336

337+
if form.webhook.thread_id:
338+
hook["thread_id"] = form.webhook.thread_id
339+
337340
# Set hook message
338341
message = form.webhook.message
339342
if message:

0 commit comments

Comments
 (0)