= Updated image embed behavior

This commit is contained in:
Matthew Cech
2019-05-13 12:30:58 -07:00
parent 49e0fc4469
commit 475b28d0bd
2 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -11,9 +11,10 @@ public class KittyEmbed
public String authorLink = null;
public String authorImage = null;
public String descriptionText = null;
public String bodyImageURL = null;
public String imageURL = null;
public KittyEmbed()
{
this.title = "Untitled";
}
}
+3
View File
@@ -47,6 +47,9 @@ public class Response
if(embedInfo.authorImage != null || embedInfo.authorLink != null || embedInfo.authorText != null)
embed.setAuthor(embedInfo.authorText, embedInfo.authorLink, embedInfo.authorImage);
if(embedInfo.imageURL != null)
embed.setImage(embedInfo.imageURL);
event.getChannel().sendMessage(embed.build()).queue();
}