Skip to content

Commit 8d83da9

Browse files
yoggysPaillat-dev
andauthored
fix: AttributeError for view=None in Webhook.send (#2915)
* fix: AttributeError for view=None in Webhook.send * update changelog * Update CHANGELOG.md Co-authored-by: Paillat <[email protected]> Signed-off-by: YoggieS <[email protected]> --------- Signed-off-by: YoggieS <[email protected]> Co-authored-by: Paillat <[email protected]>
1 parent 9d09337 commit 8d83da9

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
@@ -26,6 +26,8 @@ These changes are available on the `master` branch, but have not yet been releas
2626
([#2808](https://github.com/Pycord-Development/pycord/pull/2808))
2727
- Unbound `raw` reference in `parse_message_update` causing errors on message updates.
2828
([#2905](https://github.com/Pycord-Development/pycord/pull/2905))
29+
- `view=None` in various methods causing an AttributeError.
30+
([#2915](https://github.com/Pycord-Development/pycord/pull/2915))
2931

3032
### Removed
3133

discord/webhook/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ async def send(
18641864
if wait:
18651865
msg = self._create_message(data)
18661866

1867-
if view is not MISSING and not view.is_finished():
1867+
if view and not view.is_finished():
18681868
message_id = None if msg is None else msg.id
18691869
view.message = None if msg is None else msg
18701870
if msg:

0 commit comments

Comments
 (0)