Constructor
new ActionList(button, …sections)
- Source:
Properties:
Name |
Type |
Description |
button |
String
|
The button text |
sections |
Array.<Section>
|
The sections of the action |
_ |
String
|
The type of the action, for internal use only |
Builds an action component for an Interactive message
Required if interactive type is "list"
Parameters:
Name |
Type |
Attributes |
Description |
button |
String
|
|
Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Maximum length: 20 characters. |
sections |
Section
|
<repeatable>
|
Sections of the list |
Throws:
-
-
If button is not provided
-
-
Type
-
Error
-
-
If button is over 20 characters
-
-
Type
-
Error
-
-
If no sections are provided or are over 10
-
-
Type
-
Error
-
-
If more than 1 section is provided and at least one doesn't have a title
-
-
Type
-
Error