Skip to content

Button

Button

A class representing a Discord button.

Kind: global class

new Button(options)

Create a new Button.

Returns: Object - - The button object.

ParamTypeDescription
optionsObjectThe options for the button.
options.emojiObjectThe emoji displayed on the button (if any).
options.labelstringThe text displayed on the button.
options.urlstringThe URL the button leads to (if any).
options.customidstringThe custom ID of the button (if any).
options.stylestringThe visual style of the button (if any).
options.disabledbooleanWhether the button is disabled or not.