Fix logging on missing meta

This commit is contained in:
Salmonllama 2020-07-27 22:42:21 -04:00
parent a72a49be02
commit 114630ead5

View File

@ -75,7 +75,7 @@ public class ImageListener implements MessageCreateListener {
.setUrl(outfit.getLink())
.addField("Uploaded:", outfit.getCreated().toString());
if (outfit.getMeta() != null) {
if (!outfit.getMeta().equals("")) {
response.addField("Meta:", outfit.getMeta());
}
@ -84,7 +84,7 @@ public class ImageListener implements MessageCreateListener {
// Add the reaction to the original message
GalleryController.getEmoji(channel.getIdAsString()).thenAcceptAsync(emoji -> {
event.getMessage().addReaction(EmojiParser.parseToUnicode(emoji));
});
}).exceptionally(ExceptionLogger.get());
}, () -> {
// Fallback error message to me
event.getApi().getUserById(BotConfig.BOT_OWNER).thenAcceptAsync(user -> {