Updated dependencies.
This commit is contained in:
parent
9e154ef2f7
commit
0bd2bda888
|
@ -8,8 +8,8 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.javacord:javacord:3.5.0'
|
||||
implementation 'redis.clients:jedis:3.9.0'
|
||||
implementation 'org.javacord:javacord:3.6.0'
|
||||
implementation 'redis.clients:jedis:4.3.0'
|
||||
|
||||
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.
|
||||
*
|
||||
* @param token The Discord bot token.
|
||||
* @param token The Discord bot token.
|
||||
* @param redisHost The host 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");
|
||||
|
||||
// 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.
|
||||
server.getTextChannels().forEach((channel) -> {
|
||||
|
|
Loading…
Reference in New Issue