Constructor
new ButtonInteraction(client, manager, data)
The constructor of the button interaction class.
Parameters:
Name | Type | Description |
---|---|---|
client | Client | The client |
manager | ButtonInteractionManager | The button interaction manager |
data | ButtonInteractionData | 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)>