Skip to content

Commit

Permalink
fix: Fixed Attachment Metadata Being Set Incorrectly In Interaction R…
Browse files Browse the repository at this point in the history
…esponses
  • Loading branch information
Icebluewolf committed Dec 27, 2024
1 parent 3298cd0 commit 984cbac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ These changes are available on the `master` branch, but have not yet been releas
apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650))
- Fixed type annotations of cached properties.
([#2635](https://github.com/Pycord-Development/pycord/issues/2635))
- Fixed attachment metadata being set incorrectly in interaction responses causing it to
be ignored. ([#2679](https://github.com/Pycord-Development/pycord/pull/2679))

### Changed

Expand Down
2 changes: 1 addition & 1 deletion discord/webhook/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def create_interaction_response(
"content_type": "application/octet-stream",
}
)
payload["attachments"] = attachments
payload["data"]["attachments"] = attachments
form[0]["value"] = utils._to_json(payload)

route = Route(
Expand Down

0 comments on commit 984cbac

Please sign in to comment.