Adds an action with id and label to message.
Actions are an alternative way for users to activate a message. Note that messages can still be activated without an action.
If parameter_type is non-null, the action is able to receive user input in addition to
simply activating the action. Currently, only string parameters are supported.
A list of predefined parameters can be supplied as a Variant array of
parameter_type in parameter_hint. If parameter_hint is floating, it will be consumed.
It is recommended to add at most two actions to a message.
| this |
a Message |
| id |
unique id of the action |
| label |
label of the action |
| parameter_type | |
| parameter_hint |
a Variant suggesting a valid range for parameters |