From 4e466650787013865c34f7a76c78cef6ccac1123 Mon Sep 17 00:00:00 2001 From: YoggieS <61660055+yoggys@users.noreply.github.com> Date: Sun, 7 Sep 2025 03:18:04 +0200 Subject: [PATCH 1/3] fix: AttributeError for view=None in Webhook.send --- discord/webhook/async_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/webhook/async_.py b/discord/webhook/async_.py index 2e8d7432cc..aec9115d5f 100644 --- a/discord/webhook/async_.py +++ b/discord/webhook/async_.py @@ -1864,7 +1864,7 @@ async def send( if wait: msg = self._create_message(data) - if view is not MISSING and not view.is_finished(): + if view and not view.is_finished(): message_id = None if msg is None else msg.id view.message = None if msg is None else msg if msg: From 0bfe45df1c9fac04fc1dd4c49e45f2399267b8bb Mon Sep 17 00:00:00 2001 From: YoggieS <61660055+yoggys@users.noreply.github.com> Date: Sun, 7 Sep 2025 03:31:47 +0200 Subject: [PATCH 2/3] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0219ed388c..045fd005ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2808](https://github.com/Pycord-Development/pycord/pull/2808)) - Unbound `raw` reference in `parse_message_update` causing errors on message updates. ([#2905](https://github.com/Pycord-Development/pycord/pull/2905)) +- `View=None` in `Webhook.send` causing an AttributeError. + ([#2915](https://github.com/Pycord-Development/pycord/pull/2915)) ### Removed From b35e432ec67782afe7f7b3bd23472d5f7d37ce80 Mon Sep 17 00:00:00 2001 From: YoggieS <61660055+yoggys@users.noreply.github.com> Date: Sun, 7 Sep 2025 08:53:31 +0200 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Paillat Signed-off-by: YoggieS <61660055+yoggys@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 045fd005ee..2225c67d10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ These changes are available on the `master` branch, but have not yet been releas ([#2808](https://github.com/Pycord-Development/pycord/pull/2808)) - Unbound `raw` reference in `parse_message_update` causing errors on message updates. ([#2905](https://github.com/Pycord-Development/pycord/pull/2905)) -- `View=None` in `Webhook.send` causing an AttributeError. +- `view=None` in various methods causing an AttributeError. ([#2915](https://github.com/Pycord-Development/pycord/pull/2915)) ### Removed