Skip to content

Commit c1c4cff

Browse files
DamegoEepyElvyra
andauthored
fix: fix error Attachment is not JSON serializable (#983)
* fix: fix error ``Attachment`` is not JSON serializable * Update interactions/api/models/message.py Co-authored-by: EdVraz <88881326+EdVraz@users.noreply.github.com>
1 parent 5258fa3 commit c1c4cff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/api/models/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ async def edit(
888888
_attachments = [a._json for a in attachments]
889889

890890
if not files or files is MISSING:
891-
_files = self.attachments
891+
_files = []
892892
elif isinstance(files, list):
893893
_files = [file._json_payload(id) for id, file in enumerate(files)]
894894
else:

0 commit comments

Comments
 (0)