Skip to content

Commit 984cbac

Browse files
committed
fix: Fixed Attachment Metadata Being Set Incorrectly In Interaction Responses
1 parent 3298cd0 commit 984cbac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ These changes are available on the `master` branch, but have not yet been releas
6464
apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650))
6565
- Fixed type annotations of cached properties.
6666
([#2635](https://github.com/Pycord-Development/pycord/issues/2635))
67+
- Fixed attachment metadata being set incorrectly in interaction responses causing it to
68+
be ignored. ([#2679](https://github.com/Pycord-Development/pycord/pull/2679))
6769

6870
### Changed
6971

discord/webhook/async_.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def create_interaction_response(
522522
"content_type": "application/octet-stream",
523523
}
524524
)
525-
payload["attachments"] = attachments
525+
payload["data"]["attachments"] = attachments
526526
form[0]["value"] = utils._to_json(payload)
527527

528528
route = Route(

0 commit comments

Comments
 (0)