From c69bf3d29d7e094ad26284106240c227a0d3c0b8 Mon Sep 17 00:00:00 2001 From: Nan R Date: Sun, 25 Sep 2022 22:15:27 +0200 Subject: [PATCH 1/2] Fix the thing --- interactions/api/http/thread.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interactions/api/http/thread.py b/interactions/api/http/thread.py index ddb4440dd..ce817626e 100644 --- a/interactions/api/http/thread.py +++ b/interactions/api/http/thread.py @@ -221,7 +221,9 @@ async def create_thread_in_forum( """ query = {"use_nested_fields": 1} - payload = {"name": name, "auto_archive_duration": auto_archive_duration} + payload = {"name": name, + "auto_archive_duration": auto_archive_duration, + "message_payload": message_payload} if rate_limit_per_user: payload["rate_limit_per_user"] = rate_limit_per_user if applied_tags: From 923565fbfd67b13bdea939c6b019f13d78dad58a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 25 Sep 2022 20:15:43 +0000 Subject: [PATCH 2/2] ci: correct from checks. --- interactions/api/http/thread.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/interactions/api/http/thread.py b/interactions/api/http/thread.py index ce817626e..88a245775 100644 --- a/interactions/api/http/thread.py +++ b/interactions/api/http/thread.py @@ -221,9 +221,11 @@ async def create_thread_in_forum( """ query = {"use_nested_fields": 1} - payload = {"name": name, - "auto_archive_duration": auto_archive_duration, - "message_payload": message_payload} + payload = { + "name": name, + "auto_archive_duration": auto_archive_duration, + "message_payload": message_payload, + } if rate_limit_per_user: payload["rate_limit_per_user"] = rate_limit_per_user if applied_tags: