File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -915,9 +915,9 @@ async def send(
915915 additional_count = 1
916916
917917 for url , filename , is_sticker in images :
918- if not prioritize_uploads or (
919- ( url is None or is_image_url (url )) and not embedded_image and filename
920- ):
918+ if (
919+ not prioritize_uploads or (( url is None or is_image_url (url )) and filename )
920+ ) and not embedded_image :
921921 if url is not None :
922922 embed .set_image (url = url )
923923 if filename :
@@ -930,7 +930,7 @@ async def send(
930930 else :
931931 embed .add_field (name = "Image" , value = f"[{ filename } ]({ url } )" )
932932 embedded_image = True
933- elif filename is not None :
933+ else :
934934 if note :
935935 color = self .bot .main_color
936936 elif from_mod :
@@ -940,11 +940,11 @@ async def send(
940940
941941 img_embed = discord .Embed (color = color )
942942
943- if url is None :
943+ if url is not None :
944944 img_embed .set_image (url = url )
945945 img_embed .url = url
946-
947- img_embed .title = filename
946+ if filename is not None :
947+ img_embed .title = filename
948948 img_embed .set_footer (text = f"Additional Image Upload ({ additional_count } )" )
949949 img_embed .timestamp = message .created_at
950950 additional_images .append (destination .send (embed = img_embed ))
You can’t perform that action at this time.
0 commit comments