ButtonInteraction

The button interaction class.

Constructor

new ButtonInteraction(client, manager, data)

The constructor of the button interaction class.

Parameters:
NameTypeDescription
clientClient

The client

managerButtonInteractionManager

The button interaction manager

dataButtonInteractionData

The data of the button interaction

Members

disabled

If the button is disabled

emoji

The emoji of the button

label

The label of the button

manager :ButtonInteractionManager

The button interaction manager

style

The style of the button

url

The url of the button

Methods

buildButton() → {MessageButton|DisGroupDevError}

Builds the button

Returns:
Type: 
MessageButton | DisGroupDevError

load() → {Promise.<(Boolean|DisGroupDevError)>}

Reloads the button interaction

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

reload() → {Promise.<(Boolean|DisGroupDevError)>}

Reloads the button interaction

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>

unload() → {Promise.<(Boolean|DisGroupDevError)>}

Unloads the button interaction

Returns:
Type: 
Promise.<(Boolean|DisGroupDevError)>