Button
Button
A class representing a Discord button.
new Button(options)
Create a new Button.
Returns: Object
- - The button object.
Param | Type | Description |
---|---|---|
options | Object | The options for the button. |
options.emoji | Object | The emoji displayed on the button (if any). |
options.label | string | The text displayed on the button. |
options.url | string | The URL the button leads to (if any). |
options.customid | string | The custom ID of the button (if any). |
options.style | string | The visual style of the button (if any). |
options.disabled | boolean | Whether the button is disabled or not. |