Constructor
- Source:
Properties:
Name |
Type |
Description |
type |
String
|
The type of the button |
reply.id |
String
|
The id of the row |
reply.title |
String
|
The title of the row |
Builds a button component for ActionButtons
Parameters:
Name |
Type |
Description |
id |
String
|
Unique identifier for your button. It cannot have leading or trailing spaces. This ID is returned in the webhook when the button is clicked by the user. Maximum length: 256 characters. |
title |
String
|
Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Maximum length: 20 characters. |
Throws:
-
-
If id is not provided
-
-
Type
-
Error
-
-
If id is over 256 characters
-
-
Type
-
Error
-
-
If title is not provided
-
-
Type
-
Error
-
-
If title is over 20 characters
-
-
Type
-
Error