Fixed update details msg

This commit is contained in:
Norbi Peti 2016-12-31 18:39:54 +01:00
parent f97d7e7a05
commit c5edce848f

View file

@ -51,9 +51,8 @@ public class AutoUpdaterListener implements IListener<MessageReceivedEvent> {
throw new Exception("No PR found");
} catch (Exception e) {
DiscordPlugin.sendMessageToChannel(DiscordPlugin.updatechannel, "",
new EmbedBuilder().withColor(Color.WHITE).withTitle(
"Update detauls: " + embed.getDescription() + " (" + e.getMessage() + ")")
.build());
new EmbedBuilder().withColor(Color.WHITE).withTitle("Update details:")
.withDescription(embed.getDescription() + " (" + e.getMessage() + ")").build());
}
return true;
}).get() && (!TBMCCoreAPI.IsTestServer() || !branch.equals("master")))