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

MessageAddReactionEvent Fires Twice Unconsistently / Pagination Skipping Pages Unintentionally #6

Closed sgoudham closed 3 years ago

sgoudham commented 3 years ago

Checklist

Make sure that you've checked all the items below.

Library info

What libraries versions are you using?

Describe the bug

To Reproduce

Steps to reproduce the behaviour:

Expected behaviour

Screenshots

Additional context

ygimenez commented 3 years ago

Analyzing the video, looks like you're activating the library during command handling, that's probably the reason why it's doubling on-click events.

I'll add an exception to be thrown whenever you try to use Pages.activate() with a handler already set. Please put the activation method inside the initialization part of the code, if the problem persists please reopen this issue.