File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,7 @@ module.exports = {
38
38
if ( options . hasOwnProperty ( 'title' ) ) embed . setTitle ( options . title ) ;
39
39
if ( options . hasOwnProperty ( 'color' ) ) embed . setColor ( options . color ) ;
40
40
if ( options . hasOwnProperty ( 'description' ) ) embed . setDescription ( options . description ) ;
41
- if ( options . hasOwnProperty ( 'thumbnail' ) && options . thumbnail !== '' && isValidUrl ( options . thumbnail ) )
42
- embed . setThumbnail ( options . thumbnail ) ;
41
+ if ( options . hasOwnProperty ( 'thumbnail' ) && options . thumbnail !== '' ) embed . setThumbnail ( options . thumbnail ) ;
43
42
if ( options . hasOwnProperty ( 'image' ) ) embed . setImage ( options . image ) ;
44
43
if ( options . hasOwnProperty ( 'url' ) && options . url !== '' ) embed . setURL ( options . url ) ;
45
44
if ( options . hasOwnProperty ( 'author' ) ) embed . setAuthor ( options . author ) ;
@@ -603,7 +602,7 @@ module.exports = {
603
602
footer : { text : body . name } ,
604
603
title : data . title ,
605
604
description : data . message ,
606
- thumbnail : body . img !== '' ? body . img : 'attachment://rocket.png'
605
+ thumbnail : ( body . img !== '' && isValidUrl ( body . img ) ) ? body . img : 'attachment://rocket.png'
607
606
} ) ;
608
607
} ,
609
608
You can’t perform that action at this time.
0 commit comments