Components
Components are visual and interactive UI elements used in message templates and Modal Forms of custom commands.
There are different component sets available depending on message template mode selected in Interface.
WARNING
Specific component availability depends on the context. For example, select menus and non-link buttons are only available for Custom Commands.
Text and Embed Modes
Those modes support following components:
- Action Row (added automatically):
You can add up to 5 rows with up to 5 buttons or single select menu for each row.
Components Mode
This mode supports a lot of different components:
You can add up to 40 components in total, taking into account the hierarchy. For example:
- Action Row with 5 buttons inside of it are 6 components in total (action row itself + 5 buttons).
- Section with accessory button and single text display are 3 components in total (section itself + accessory button + text display);
- Container with section having accessory button and single text display are 4 components in total (container itself + section + accessory button + text display).
If the message template execution results in more than 40 components, the components that exceed this limit will be discarded.
Modal Forms
Modal forms supports following components:
- Text Display;
- String Select Menu;
- Entity Select Menu;
- Text Input;
- File Upload;
- Checkbox;
- Checkbox Group;
- Radio Group.
Modal forms must have at least one component, up to 5.