D4J 2.6.1 support

keep-around/c1dc471bbeeb92b2c103d34a36218161e399516d
Pingex aka Raphaël 9 years ago
parent ce877a9f0b
commit c1dc471bbe

@ -37,7 +37,7 @@ dependencies {
runtime group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.2'
// Discord Gateway API
compile group: 'com.github.austinv11', name: 'Discord4j', version: '2.5.1'
compile group: 'com.github.austinv11', name: 'Discord4j', version: '2.6.1'
// Util
compile group: 'net.jodah', name: 'failsafe', version: '0.8.3'

@ -78,7 +78,7 @@ public class InternalCommands implements IWithCommands
StringBuilder output = new StringBuilder
("**List of commands available for " + Configuration.BOT_NAME + "** (page " + requestedPage + "/" + amountPages + ")\n");
output.append("Use `").append(UsageCommand.USAGE).append("`")
output.append("Use `").append(UsageCommand.NAME).append("`")
.append(" to get details and usage about any command.\n");
output.append("```");

@ -38,7 +38,6 @@ public class GatewayConnectionsManager
public static void registerConnection(ClientBuilder builder)
{
LOGGER.info("Registering new connection");
builder.withReconnects(); // Makes the connections auto-reconnects on dropped connection.
try
{
IDiscordClient builtConnection = builder.login();