Updated dependencies.
This commit is contained in:
@@ -8,8 +8,8 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.javacord:javacord:3.5.0'
|
implementation 'org.javacord:javacord:3.6.0'
|
||||||
implementation 'redis.clients:jedis:3.9.0'
|
implementation 'redis.clients:jedis:4.3.0'
|
||||||
|
|
||||||
implementation 'org.slf4j:slf4j-simple:1.7.36'
|
implementation 'org.slf4j:slf4j-simple:1.7.36'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ public final class Crabstero {
|
|||||||
/**
|
/**
|
||||||
* Creates a new instance of Crabstero using a given Discord bot token to connect to Discord and a given Redis host and port to connect to a Redis database.
|
* Creates a new instance of Crabstero using a given Discord bot token to connect to Discord and a given Redis host and port to connect to a Redis database.
|
||||||
*
|
*
|
||||||
* @param token The Discord bot token.
|
* @param token The Discord bot token.
|
||||||
* @param redisHost The host of the Redis server.
|
* @param redisHost The host of the Redis server.
|
||||||
* @param redisPort The port of the Redis server.
|
* @param redisPort The port of the Redis server.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public final class ServerJoin implements ServerJoinListener {
|
|||||||
embed.setFooter(event.getApi().getServers().size() + " total servers");
|
embed.setFooter(event.getApi().getServers().size() + " total servers");
|
||||||
|
|
||||||
// Send this embed to the bot owner.
|
// Send this embed to the bot owner.
|
||||||
event.getApi().getOwner().thenAcceptAsync((owner) -> owner.sendMessage(embed).exceptionally(ExceptionLogger.get()));
|
event.getApi().getOwner().ifPresent((owner) -> owner.thenAcceptAsync((user) -> user.sendMessage(embed).exceptionally(ExceptionLogger.get())));
|
||||||
|
|
||||||
// Queue all text channels for message history ingestion.
|
// Queue all text channels for message history ingestion.
|
||||||
server.getTextChannels().forEach((channel) -> {
|
server.getTextChannels().forEach((channel) -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user