Skip to content

Commit ca62594

Browse files
authored
fix: webhook/interaction editing with attachments param (Pycord-Development#2779)
* fix webhook/interaction editing with attachments param * cl
1 parent c0c0b7c commit ca62594

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ These changes are available on the `master` branch, but have not yet been releas
105105
([#2746])(https://github.com/Pycord-Development/pycord/pull/2746)
106106
- Updated `valid_locales` to support `in` and `es-419`.
107107
([#2767])(https://github.com/Pycord-Development/pycord/pull/2767)
108+
- Fixed `Webhook.edit` not working with `attachments=[]`.
109+
([#2779])(https://github.com/Pycord-Development/pycord/pull/2779)
108110

109111
### Changed
110112

discord/webhook/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ def handle_message_parameters(
712712
if voice_message:
713713
flags = flags + MessageFlags(is_voice_message=True)
714714

715-
if _attachments:
715+
if attachments is not MISSING or _attachments:
716716
payload["attachments"] = _attachments
717717

718718
payload["flags"] = flags.value

0 commit comments

Comments
 (0)