Class: MenuMessage

MenuMessage

A Message that has a Menu.

Constructor

Creates a new MenuMessage.
Parameters:
Name Type Attributes Default Description
content string | RichEmbed The content of the message.
channel Channel The channel to send the message to, or the channel the message is in.
embed boolean <optional>
false Whether or not content is a RichEmbed.
Source:

Members

(readonly) Channel :Channel

The Channel the MenuMessage exists in.
Type:
  • Channel
Source:

(readonly) Content :string|RichEmbed

The content of the message.
Type:
  • string | RichEmbed
Source:

(readonly) Embed :boolean

Whether or not the message should be treated as a RichEmbed.
Type:
  • boolean
Source:

Methods

AddMenu(buttonsopt, nullable, dataopt)

Adds a Menu to this message.
Parameters:
Name Type Attributes Default Description
buttons Array.<Button> <optional>
<nullable>
null An array of Buttons to add to the Menu.
data Object <optional>
Optional data to pass to the Button.
Source:

Send()

Sends the MenuMessage, drawing the buttons and registering the menu.
Source:
Returns:
Promise