updated discord4j version

This commit is contained in:
christian 2021-12-02 22:00:41 +01:00
parent 30bf0d059f
commit 8eacf7da71
3 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@
<dependency> <dependency>
<groupId>com.discord4j</groupId> <groupId>com.discord4j</groupId>
<artifactId>discord4j-core</artifactId> <artifactId>discord4j-core</artifactId>
<version>3.1.7</version> <version>3.2.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.jetbrains.kotlin</groupId> <groupId>org.jetbrains.kotlin</groupId>

View File

@ -54,7 +54,7 @@ public class DoStuff {
} }
} }
if (!channelpermissionsDenied) { if (!channelpermissionsDenied) {
List<User> blockLast = event.getMessage().getUserMentions().buffer().blockLast(); List<User> blockLast = event.getMessage().getUserMentions();
String content = event.getMessage().getContent(); String content = event.getMessage().getContent();
if (blockLast != null) { if (blockLast != null) {
for (User user : blockLast) { for (User user : blockLast) {

View File

@ -107,5 +107,5 @@ public class DiscordHandler {
FunctionLayer.DoStuff.doStuff(event, usernameBot, datahandler, stanfordCoreNLP, stanfordCoreNLPSentiment); FunctionLayer.DoStuff.doStuff(event, usernameBot, datahandler, stanfordCoreNLP, stanfordCoreNLPSentiment);
}); });
gateway.onDisconnect().block(); gateway.onDisconnect().block();
} //3.1.1 discord4j version }
} }