Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: misplaced payload object #2192

Merged
merged 3 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions discord/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down
Loading