Update for breaking changes

This commit is contained in:
Salmonllama 2020-11-11 11:18:09 -05:00
parent 70ffa9c1f0
commit 0b916cdb9f
4 changed files with 3 additions and 4 deletions

View File

@ -34,7 +34,6 @@ public class Main {
new DiscordApiBuilder().setToken(BotConfig.TOKEN).login().thenAccept(api -> {
@SuppressWarnings("unused")
Guthix guthix = new Guthix(api);
// Register listeners

View File

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

View File

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

View File

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