Update for breaking changes
This commit is contained in:
parent
70ffa9c1f0
commit
0b916cdb9f
@ -34,7 +34,6 @@ public class Main {
|
||||
|
||||
new DiscordApiBuilder().setToken(BotConfig.TOKEN).login().thenAccept(api -> {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
Guthix guthix = new Guthix(api);
|
||||
|
||||
// Register listeners
|
||||
|
@ -50,7 +50,7 @@ public class EditMetaCommand extends Command {
|
||||
msg.addReaction(EmojiParser.parseToUnicode(":octagonal_sign:"));
|
||||
|
||||
msg.addReactionAddListener(event -> {
|
||||
if (event.getUser().getId() != authorId) {
|
||||
if (event.getUserId() != authorId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ public class RemoveOutfitCommand extends Command {
|
||||
msg.addReaction(EmojiParser.parseToUnicode(":octagonal_sign:"));
|
||||
|
||||
msg.addReactionAddListener(event -> {
|
||||
if (event.getUser().getId() != authorId) {
|
||||
if (event.getUserId() != authorId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ public class RetagCommand extends Command {
|
||||
msg.addReaction(EmojiParser.parseToUnicode(":octagonal_sign:"));
|
||||
|
||||
msg.addReactionAddListener(event -> {
|
||||
if (event.getUser().getId() != authorId) {
|
||||
if (event.getUserId() != authorId) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user