Constructor
new MenuButton(emoji, Callback, dataopt)
Creates a Button.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
emoji |
string | The emoji which graphically represents the Button. | ||
Callback |
ButtonCallback | The callback function of the Button. | ||
data |
Object |
<optional> |
null | Additional data for the Callback. |
- Source:
Members
Callback
This Button's callback function.
- Source:
Data
Optional data to be passed to this Button's callback.
- Source:
(readonly) Emoji :string
The emoji this Button is represented graphically by.
Type:
- string
- Source:
Methods
Draw(m)
Draws this button by reacting to the provided Message.
Parameters:
| Name | Type | Description |
|---|---|---|
m |
Message | The Message to Draw to. |
- Source: