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(
915
915
additional_count = 1
916
916
917
917
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 :
921
921
if url is not None :
922
922
embed .set_image (url = url )
923
923
if filename :
@@ -930,7 +930,7 @@ async def send(
930
930
else :
931
931
embed .add_field (name = "Image" , value = f"[{ filename } ]({ url } )" )
932
932
embedded_image = True
933
- elif filename is not None :
933
+ else :
934
934
if note :
935
935
color = self .bot .main_color
936
936
elif from_mod :
@@ -940,11 +940,11 @@ async def send(
940
940
941
941
img_embed = discord .Embed (color = color )
942
942
943
- if url is None :
943
+ if url is not None :
944
944
img_embed .set_image (url = url )
945
945
img_embed .url = url
946
-
947
- img_embed .title = filename
946
+ if filename is not None :
947
+ img_embed .title = filename
948
948
img_embed .set_footer (text = f"Additional Image Upload ({ additional_count } )" )
949
949
img_embed .timestamp = message .created_at
950
950
additional_images .append (destination .send (embed = img_embed ))
You can’t perform that action at this time.
0 commit comments