Repository navigation
Changed several methods related to buttonize workflow to allow a better, more fine-grained control over click validation and usability. Also fixed an old issue where buttons couldn't have the same emoji or label.
WARNING: Removed Mapping again in favour of regular maps again, canInteract functions now use InteractionData instead of User as argument and event IDs are now regular strings instead of a CRC32 hash.
Changelist:
- Updated JDA to 6.3.1.
- Changed event IDs to use
<GUILD/PRIVATE>_<CHANNEL>_<MESSAGE>pattern instead of a CRC32 hash. - Removed
Mappingclass (Map can be used in its place safely). - Most
.submit()calls no longer wait for a response. InteractButtons now have a separate property for ID, allowing multiple buttons with the same label.- Moved button removal to
finalizeEvent. - Added check for message ownership (prevents errors related to button removal on messages not owned by the bot).
- Added null checks.