$addButton
Adds a button to this action row.
Usage
This function has five params.
Param | Description | Type | Required |
---|---|---|---|
customID/link | The customID or link of this button. | string | yes |
label | The label that this button displays. | string | yes |
style | The style of this button. | string (ButtonStyle) | yes |
emoji | The emoji that will appear to the left of the | string | no |
disabled | Whether this button should be disabled or not. | boolean | yes |
There can be up to 5 buttons per action row.
Example
Link Button:
Regular Button:
Last updated