File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1598,7 +1598,7 @@ async def edit(
15981598 payload ["attachments" ] = [a .to_dict () for a in attachments ]
15991599
16001600 if view is not MISSING :
1601- self ._state .prevent_view_updates_for (self .id )
1601+ await self ._state .prevent_view_updates_for (self .id )
16021602 payload ["components" ] = view .to_components () if view else []
16031603 if file is not MISSING and files is not MISSING :
16041604 raise InvalidArgument ("cannot pass both file and files parameter to edit()" )
@@ -2216,7 +2216,7 @@ async def edit(self, **fields: Any) -> Message | None:
22162216
22172217 view = fields .pop ("view" , MISSING )
22182218 if view is not MISSING :
2219- self ._state .prevent_view_updates_for (self .id )
2219+ await self ._state .prevent_view_updates_for (self .id )
22202220 fields ["components" ] = view .to_components () if view else []
22212221
22222222 if fields :
Original file line number Diff line number Diff line change @@ -1995,7 +1995,7 @@ async def edit_message(
19951995 "This webhook does not have state associated with it"
19961996 )
19971997
1998- self ._state .prevent_view_updates_for (message_id )
1998+ await self ._state .prevent_view_updates_for (message_id )
19991999
20002000 previous_mentions : AllowedMentions | None = getattr (
20012001 self ._state , "allowed_mentions" , None
You can’t perform that action at this time.
0 commit comments