ConfirmObject
init
Creates a ConfirmObject instance.
text
string
true
The text for the confirm object.
Return: The ConfirmObject instance.
title
Sets the title for the ConfirmObject instance.
title
string
true
The title for the ConfirmObject. Maximum character limit of 100.
Return: The ConfirmObject instance.
text
Sets the text for the ConfirmObject instance.
text
string
true
The text for the ConfirmObject. Maximum character limit of 300.
Return: The ConfirmObject instance.
confirm
Sets the confirm button label for the ConfirmObject instance.
label
string
true
The confirm button label for the ConfirmObject. Maximum character limit of 30.
Return: The ConfirmObject instance.
deny
Sets the deny button label for the ConfirmObject instance.
label
string
true
The deny button label for the ConfirmObject. Maximum character limit of 30.
Return: The ConfirmObject instance.
danger
Marks the ConfirmObject as dangerous.
No arguments
Return: The ConfirmObject instance.
getMemento
Converts the ConfirmObject instance to a serializable format.
No arguments
Return: (struct) A struct representing this ConfirmObject instance.
{
"title": {
"type": "plain_text",
"text": "Are you sure?"
},
"text": {
"type": "plain_text",
"text": "Please confirm this action."
},
"confirm": {
"type": "plain_text",
"text": "Yes"
},
"deny": {
"type": "plain_text",
"text": "No"
},
"style": "optional, danger"
}Last updated
