-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buttons being removed from other embeds #49
Comments
This happens because the library assumes all button handling will be done by itself (like with Meanwhile, you can manually add the message to the events map through |
Is there any ETA for this? |
Sorry, I've been busy with some tasks at work, couldn't touch it yet, but I should be able to deal with it soon. |
I apologize for the confusion, the solution was already available (but in a different class) since version 4.0.0, but I forgot about it. (Available in version 4.0.6) To fix the issue you're having, simply change var paginator = PaginatorBuilder.createPaginator(/* Your client */)
... // Other settings
.setOnRemove(hook -> {}) // Setting it as an empty consumer will suffice, or your can use it for other things.
.build() |
Checklist
Make sure that you've checked all the items below.
JDABuilder.createLight()
, you added the following gateway intents:.setRemoveOnReact(true)
, you have the following permission:Library info
What libraries versions are you using.
Describe the bug
When I add an ActionRow to other embeds I have in my bot (that are not handled by Pagination-Utils), as soon as I react on any button the whole row is deleted. When the util was disabled my other embed buttons worked fine without being deleted.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Pagination Utils should not be handling other embed button listeners.
Screenshots
If applicable, add screenshots to help explain your problem.
With Pagination-Utils enabled on external embed with "buttons" that is handled by myself on my own listener.
With Pagination-Utils disabled (working fine, my buttons show and are usable):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: