diff --git a/src/main/java/snw/kookbc/impl/event/internal/UserClickButtonListener.java b/src/main/java/snw/kookbc/impl/event/internal/UserClickButtonListener.java index a21baa58..c92770c7 100644 --- a/src/main/java/snw/kookbc/impl/event/internal/UserClickButtonListener.java +++ b/src/main/java/snw/kookbc/impl/event/internal/UserClickButtonListener.java @@ -33,7 +33,7 @@ public UserClickButtonListener(KBCClient client) { this.client = client; } - @EventHandler + @EventHandler(internal = true) public void event(UserClickButtonEvent event) { String value = event.getValue(); if (!value.startsWith(HELP_VALUE_HEADER)) { @@ -43,7 +43,6 @@ public void event(UserClickButtonEvent event) { int page = detail.get("page").getAsInt(); int currentPage = detail.get("current").getAsInt(); String messageType = detail.get("messageType").getAsString(); - boolean force = detail.has("force") && detail.get("force").getAsBoolean(); if (page == currentPage) { return; } @@ -117,7 +116,6 @@ public void event(UserClickButtonEvent event) { if (messageType.equals("PM")) { Message message = this.client.getCore().getUnsafe().getPrivateMessage(event.getMessageId()); - ; message.setComponent(finalComponent); } else if (messageType.equals("CM")) { Message message = this.client.getCore().getUnsafe().getTextChannelMessage(event.getMessageId());