Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ These changes are available on the `master` branch, but have not yet been releas

- Include `bypass_slowmode` in `Permissions.all`.
([#3231](https://github.com/Pycord-Development/pycord/pull/3231))
- Fixed `AttributeError` when using `Webhook.edit_message` with views.
([#3239](https://github.com/Pycord-Development/pycord/pull/3239))

### Deprecated

Expand Down
4 changes: 2 additions & 2 deletions discord/webhook/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -2115,8 +2115,8 @@ async def edit_message(
raise InvalidArgument(
"Dispatchable Webhook views require an associated state with the webhook"
)

self._state.prevent_view_updates_for(message_id)
if not isinstance(self._state, _WebhookState):
self._state.prevent_view_updates_for(message_id)
if self.type is not WebhookType.application:
with_components = True

Expand Down
Loading