Skip to content

Commit

Permalink
Changed usage of deprecated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
DV8FromTheWorld committed Dec 29, 2016
1 parent 04bd38b commit 68ae358
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Expand Up @@ -283,7 +283,7 @@ private void handleLists(MessageReceivedEvent e, String[] args)
messages.add(builder.build());
builder = new MessageBuilder();
}
builder.appendString(listString);
builder.append(listString);
}
messages.add(builder.build());
}
Expand Down
26 changes: 13 additions & 13 deletions src/main/java/net/dv8tion/discord/commands/UpdateCommand.java
Expand Up @@ -40,31 +40,31 @@ public void onCommand(MessageReceivedEvent e, String[] args)
if(SettingsManager.getInstance().getSettings().getUseBetaBuilds() && YuiInfo.hasNewBetaVersion())
{
sendMessage(e, new MessageBuilder()
.appendString("Updating to the latest **beta** version.\n")
.appendString(YuiInfo.VERSION.toString())
.appendString(" -> ")
.appendString(YuiInfo.getLatestBetaVersion().toString())
.append("Updating to the latest **beta** version.\n")
.append(YuiInfo.VERSION.toString())
.append(" -> ")
.append(YuiInfo.getLatestBetaVersion().toString())
.build());
System.exit(Yui.UPDATE_LATEST_EXITCODE);
}
else if (YuiInfo.hasNewRecommendedVersion())
{
sendMessage(e, new MessageBuilder()
.appendString("Updating to the latest **recommended** version.\n")
.appendString(YuiInfo.VERSION.toString())
.appendString(" -> ")
.appendString(YuiInfo.getLatestRecommendedVersion().toString())
.append("Updating to the latest **recommended** version.\n")
.append(YuiInfo.VERSION.toString())
.append(" -> ")
.append(YuiInfo.getLatestRecommendedVersion().toString())
.build());
System.exit(Yui.UPDATE_RECOMMENDED_EXITCODE);
}
else
{
sendMessage(e, new MessageBuilder()
.appendString("Yui is currently up-to-date compared to the latest ")
.appendString(SettingsManager.getInstance().getSettings().getUseBetaBuilds() ? "beta" : "recommended")
.appendString("build.\n")
.appendString("Current version: ", MessageBuilder.Formatting.BOLD)
.appendString(YuiInfo.VERSION.toString())
.append("Yui is currently up-to-date compared to the latest ")
.append(SettingsManager.getInstance().getSettings().getUseBetaBuilds() ? "beta" : "recommended")
.append("build.\n")
.append("Current version: ", MessageBuilder.Formatting.BOLD)
.append(YuiInfo.VERSION.toString())
.build());
}
}
Expand Down

0 comments on commit 68ae358

Please sign in to comment.