Changelog
Changes
- Updated to JDA 6.1.1. With that comes some breaking changes. See "Migrating" section below for necessary migrations
Components
- Added new Label component type
- This replaces the use of Action rows in modals and the
labelproperty in text inputs
- This replaces the use of Action rows in modals and the
- Action rows are now its own component type
- Instead of the
componentsin the message content schema being a list of lists of components, action rows can be declared explicitly with a component of typeaction_row. The old syntax of defining an action row from an array is still supported for backward compatibility and convenience.
- Instead of the
- The
labelfield of text inputs has been removed. Use a label component instead. - Added support for components V2 via
use_components_v2in message content - Added new components from components V2 (See docs for details)
- Separator
- Container
- Text display
- Section
- Thumbnail
- Media gallery
- File display
- File upload
Documentation
- Message components example was split into seperate buttons and select menus example
- Added misc components example for component V2 components
- Added links to relevant examples to docs for functions and schemas
- Updated modal example with file upload and select menu
Migrating
To migrate your scripts, the following is necessary:
- Converting action rows in modals to labels
- Check the updated modal example in the documentation
Dependencies
Files
discarpet-1.21.10-1.7.0.jar(5.7 MiB) Primary Download
External resources
Project members
replaceitem
Owner
Technical information
License
MIT
Client side
unsupported
Server side
required
Project ID


