Open Artuto opened 4 years ago
Please refer to the Javadocs. They might be outdated, but I'm sure the ButtonMenu is still mostly up to date.
ButtonMenu.Builder#addChoice(String emoji)
Using the Button Menu, when adding a choice you cannot use an emote if you have the EMOTE CacheFlag disabled.
You cannot get a Emote object
That is kinda obvious when you disable the CacheFlag for EMOTES, meaning JDA doesn't have it in its internal cache and therefore might first need to get it.
Just generate an Emote object to add to the list, or use Unicode emojis.
You know that you can literally use the format a?:name:id
for emotes (if I recall the pattern correctly)
Issue
Issue Checklist
Please follow the following steps before opening this issue.
Issues that do not complete the checklist may be closed without any help.
Issue Information
Check all that apply:
Description
Using the Button Menu, when adding a choice you cannot use an emote if you have the EMOTE CacheFlag disabled.
The following code results in the following stack trace:
You can workaround this by doing this (adding the emote name to the id):
However, when the add reaction event is received and handled by the menu, it compares the emote ID with the internal menu list of choices, which has
a:emote id
and not just the id, therefore the menu will never proceed