diff --git a/CHANGELOG.md b/CHANGELOG.md index 93ac55dba8..ceeaf33723 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -160,6 +160,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2162](https://github.com/Pycord-Development/pycord/pull/2162)) - Fixed initial message inside of the create thread payload sending legacy beta payload. ([#2191](https://github.com/Pycord-Development/pycord/pull/2191)) +- Fixed a misplaced payload object inside of the thread creation payload. + ([#2192](https://github.com/Pycord-Development/pycord/pull/2192)) ## [2.4.1] - 2023-03-20 diff --git a/discord/http.py b/discord/http.py index 05fff4b14f..9eb7837d13 100644 --- a/discord/http.py +++ b/discord/http.py @@ -1187,6 +1187,9 @@ def start_forum_thread( if applied_tags: payload["applied_tags"] = applied_tags + if rate_limit_per_user: + payload["rate_limit_per_user"] = rate_limit_per_user + message = {} if content: @@ -1210,9 +1213,6 @@ def start_forum_thread( if stickers: message["sticker_ids"] = stickers - if rate_limit_per_user: - message["rate_limit_per_user"] = rate_limit_per_user - if message != {}: payload["message"] = message