ygimenez / Pagination-Utils

A collection of methods to make message pagination with JDA easier.
GNU Lesser General Public License v2.1
27 stars 7 forks source link

Cannot manually remove events from MessageHandler since update. #18

Closed HeyBanditoz closed 3 years ago

HeyBanditoz commented 3 years ago

Is your feature request related to a problem? Please describe. Previously, I was running version 1.3.0, which exposed Pages.handler so I could call removeEvent (in this case, it was when a user either won or lost a game). While updating Gradle dependencies, I noticed that version 2.1.2 doesn't appear to expose the handler anymore, or any way to remove an event.

Describe the solution you'd like Either a getter to the handler, or a method in Pages to remove an event by a Message or an ID. I suppose having this method remove reactions already on the message would be neat, too.

Describe alternatives you've considered None.

Additional context You can check out this code file for how it was being done.

ygimenez commented 3 years ago

I'll put a getter to re-expose the handler again, thanks for pointing out.

ygimenez commented 3 years ago

Added a getter for Pages.handler in version 2.1.3