Skip to content

Commit e18db66

Browse files
fix: Add message_payload to payload in create_thread_in_forum http method (#1101)
* Fix the thing * ci: correct from checks. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f71cc7e commit e18db66

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

interactions/api/http/thread.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ async def create_thread_in_forum(
221221
"""
222222
query = {"use_nested_fields": 1}
223223

224-
payload = {"name": name, "auto_archive_duration": auto_archive_duration}
224+
payload = {
225+
"name": name,
226+
"auto_archive_duration": auto_archive_duration,
227+
"message_payload": message_payload,
228+
}
225229
if rate_limit_per_user:
226230
payload["rate_limit_per_user"] = rate_limit_per_user
227231
if applied_tags:

0 commit comments

Comments
 (0)