Skip to content

Commit 7261696

Browse files
authored
fix: ValueError raised when having file (#1303)
* fix: `file`/`files` in `ctx.edit_origin` not included * fix: ValueError raising when having `file`
1 parent c3c9457 commit 7261696

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interactions/models/internal/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,10 @@ async def edit(
554554
)
555555

556556
if file:
557-
files = (file, *files) if files else (file,)
557+
if files:
558+
files = [file, *files]
559+
else:
560+
files = [file]
558561
message_data = await self.client.http.edit_interaction_message(
559562
payload=message_payload,
560563
application_id=self.client.app.id,

0 commit comments

Comments
 (0)