Skip to content

Commit a2eaffd

Browse files
authored
fix: fix error with converting components in edit (#987)
* fix: fix error with converting components in edit * add build components to message.edit * doc * Revert "doc" This reverts commit a9eda7b.
1 parent 20be297 commit a2eaffd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interactions/api/models/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ async def edit(
910910
if not components:
911911
_components = []
912912
elif components is MISSING:
913-
_components = self.components
913+
_components = _build_components(components=self.components)
914914
else:
915915
_components = _build_components(components=components)
916916

interactions/client/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async def edit(
255255

256256
if self.message.components is not None or components is not MISSING:
257257
if components is MISSING:
258-
_components = self.message.components
258+
_components = _build_components(components=self.message.components)
259259
elif not components:
260260
_components = []
261261
else:

0 commit comments

Comments
 (0)