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"); throw new Exception("No PR found");
} catch (Exception e) { } catch (Exception e) {
DiscordPlugin.sendMessageToChannel(DiscordPlugin.updatechannel, "", DiscordPlugin.sendMessageToChannel(DiscordPlugin.updatechannel, "",
new EmbedBuilder().withColor(Color.WHITE).withTitle( new EmbedBuilder().withColor(Color.WHITE).withTitle("Update details:")
"Update detauls: " + embed.getDescription() + " (" + e.getMessage() + ")") .withDescription(embed.getDescription() + " (" + e.getMessage() + ")").build());
.build());
} }
return true; return true;
}).get() && (!TBMCCoreAPI.IsTestServer() || !branch.equals("master"))) }).get() && (!TBMCCoreAPI.IsTestServer() || !branch.equals("master")))