Button
Represents a button element with various properties.
new Button(options)
Section titled “new Button(options)”Constructs a button object with the provided properties.
Returns: Object - - The constructed button object.
| Param | Type | Description |
|---|---|---|
| options | Object | The options object containing the button properties. |
| options.emoji | Object | The emoji object for the button. |
| options.label | string | The label text for the button. |
| options.url | string | The URL to open when the button is clicked. |
| options.customid | string | The custom ID for the button. |
| options.style | number | The style of the button. |
| options.disabled | boolean | Whether the button is disabled or not. |