= Removed old test and improved image utils

This commit is contained in:
Matthew Cech
2019-06-17 23:00:52 -07:00
parent e76bb6bb27
commit f4212f7c7d
4 changed files with 29 additions and 2 deletions
+7
View File
@@ -35,9 +35,15 @@ public class Response
EmbedBuilder embed = new EmbedBuilder();
if(embedInfo.title != null && !embedInfo.title.isEmpty())
{
embed.setTitle(embedInfo.title);
}
else
{
// We have to set the title to at least something that's not empty.
// By defualt, this creates nothing really visible.
embed.setTitle(" ");
}
if(embedInfo.color != null)
embed.setColor(embedInfo.color);
@@ -61,6 +67,7 @@ public class Response
String thumbPath = embedInfo.thumbnailURL;
String thumbName = thumbPath.replace("attachment://", "");
// Build the message and send if the file is valid
MessageBuilder message = new MessageBuilder();
embed.setThumbnail(thumbPath);
message.setEmbed(embed.build());