Skip to content

Commit cf51a1a

Browse files
authored
Merge branch 'master' into overlap
2 parents ea7c2a2 + ca62594 commit cf51a1a

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
@@ -108,6 +108,8 @@ These changes are available on the `master` branch, but have not yet been releas
108108
([#2746])(https://github.com/Pycord-Development/pycord/pull/2746)
109109
- Updated `valid_locales` to support `in` and `es-419`.
110110
([#2767])(https://github.com/Pycord-Development/pycord/pull/2767)
111+
- Fixed `Webhook.edit` not working with `attachments=[]`.
112+
([#2779])(https://github.com/Pycord-Development/pycord/pull/2779)
111113

112114
### Changed
113115

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)