@@ -633,7 +633,7 @@ async def edit(
633
633
) -> "interactions.Message" :
634
634
message_payload = process_message_payload (
635
635
content = content ,
636
- embeds = embeds or embed ,
636
+ embeds = embed if embeds is None else embeds ,
637
637
components = components ,
638
638
allowed_mentions = allowed_mentions ,
639
639
attachments = attachments ,
@@ -875,7 +875,7 @@ async def edit_origin(
875
875
876
876
message_payload = process_message_payload (
877
877
content = content ,
878
- embeds = embeds or embed ,
878
+ embeds = embed if embeds is None else embeds ,
879
879
components = components ,
880
880
allowed_mentions = allowed_mentions ,
881
881
tts = tts ,
@@ -889,13 +889,15 @@ async def edit_origin(
889
889
)
890
890
891
891
message_data = await self .client .http .edit_interaction_message (
892
- message_payload , self .client .app .id , self .token , files = files or file
892
+ message_payload , self .client .app .id , self .token , files = file if files is None else files
893
893
)
894
894
self .deferred = False
895
895
self .editing_origin = False
896
896
else :
897
897
payload = {"type" : CallbackType .UPDATE_MESSAGE , "data" : message_payload }
898
- await self .client .http .post_initial_response (payload , str (self .id ), self .token , files = files or file )
898
+ await self .client .http .post_initial_response (
899
+ payload , str (self .id ), self .token , files = file if files is None else files
900
+ )
899
901
message_data = await self .client .http .get_interaction_message (self .client .app .id , self .token )
900
902
901
903
if message_data :
0 commit comments