updated discord4j version
This commit is contained in:
parent
30bf0d059f
commit
8eacf7da71
@ -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>
|
||||||
|
@ -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) {
|
||||||
|
@ -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
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user