diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e40955afe..85d14e3309 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -105,6 +105,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2746])(https://github.com/Pycord-Development/pycord/pull/2746) - Updated `valid_locales` to support `in` and `es-419`. ([#2767])(https://github.com/Pycord-Development/pycord/pull/2767) +- Fixed `Webhook.edit` not working with `attachments=[]`. + ([#2779])(https://github.com/Pycord-Development/pycord/pull/2779) ### Changed diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 4b87a7e0f3..1661b1bb67 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -712,7 +712,7 @@ def handle_message_parameters( if voice_message: flags = flags + MessageFlags(is_voice_message=True) - if _attachments: + if attachments is not MISSING or _attachments: payload["attachments"] = _attachments payload["flags"] = flags.value