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

Option on cleaning reactions #10

Closed avurro closed 3 years ago

avurro commented 3 years ago

Is your feature request related to a problem? Please describe. Users would like to have the freedom to add emojis on embeds.

Describe the solution you'd like An option that allows you to define its behavior.

ygimenez commented 3 years ago

Do you mean using custom emotes on buttons? If yes, Pages.buttonize() do exactly that, allowing you to bind an action to a button (which is defined by you)

avurro commented 3 years ago

image Users don't have the freedom to add their own emojis under this embed, because they are automatically removed. Is it possible to allow them to be kept?

ygimenez commented 3 years ago

That's something you need to do on your side, just store the Map of buttons in a variable and regenerate the buttons each time someone adds a reaction to the Map.

I do something similar on my bot and it works quite well, but this isn't possible library-wise because once called all methods are final.

ygimenez commented 3 years ago

Not exactly what you wanted, but reaction removal is now optional in release 2.1.1