Constructor
new Menu(client)
Creates a Menu.
Parameters:
| Name | Type | Description |
|---|---|---|
client |
Client | The Client the Mesnu belongs to. |
- Source:
Members
Buttons
A Collection of Buttons belonging to this Menu.
- Source:
Message
The Message that this Menu has been sent with.
- Source:
Methods
AddButton(emoji, callback, data)
Adds a Button to this Menu.
Parameters:
| Name | Type | Description |
|---|---|---|
emoji |
string | The emoji the button is of. |
callback |
ButtonCallback | The callback of the button. |
data |
type | Optional data to pass to the callback. |
- Source:
Display(m)
Displays this Menu's Buttons.
Parameters:
| Name | Type | Description |
|---|---|---|
m |
Message | The Message this Menu belongs to. |
- Source:
- See:
-
- Button#Draw