Updated dependencies.

This commit is contained in:
Logan Fick 2022-10-18 12:26:36 -04:00
parent 9e154ef2f7
commit 0bd2bda888
Signed by: LogalDeveloper
GPG Key ID: 43E58A0C922AB7D1
3 changed files with 4 additions and 4 deletions

View File

@ -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'
}

View File

@ -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.
*/

View File

@ -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) -> {