= Updated image embed behavior
This commit is contained in:
@@ -11,9 +11,10 @@ public class KittyEmbed
|
|||||||
public String authorLink = null;
|
public String authorLink = null;
|
||||||
public String authorImage = null;
|
public String authorImage = null;
|
||||||
public String descriptionText = null;
|
public String descriptionText = null;
|
||||||
|
public String bodyImageURL = null;
|
||||||
|
public String imageURL = null;
|
||||||
|
|
||||||
public KittyEmbed()
|
public KittyEmbed()
|
||||||
{
|
{
|
||||||
this.title = "Untitled";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ public class Response
|
|||||||
if(embedInfo.authorImage != null || embedInfo.authorLink != null || embedInfo.authorText != null)
|
if(embedInfo.authorImage != null || embedInfo.authorLink != null || embedInfo.authorText != null)
|
||||||
embed.setAuthor(embedInfo.authorText, embedInfo.authorLink, embedInfo.authorImage);
|
embed.setAuthor(embedInfo.authorText, embedInfo.authorLink, embedInfo.authorImage);
|
||||||
|
|
||||||
|
if(embedInfo.imageURL != null)
|
||||||
|
embed.setImage(embedInfo.imageURL);
|
||||||
|
|
||||||
event.getChannel().sendMessage(embed.build()).queue();
|
event.getChannel().sendMessage(embed.build()).queue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user