Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MenuPage

This class that represent a page in a menu.

Hierarchy

  • MenuPage

Index

Constructors

constructor

Properties

buttons

buttons: MenuButton[]

content

content: string

embeds

embeds: MessageEmbed[]

files

files: MessageAttachment[]

id

id: string

timeout

timeout: number

type

type: string

Methods

addButton

addEmbed

addFile

  • addFile(file: MessageAttachment): MenuPage

setContent

setId

  • The ID of the page. This ID will be used to identify the page in the button with target.

    Parameters

    • id: string

    Returns MenuPage

setTimeout

  • A function for set the timeout before that you are unable to interact with the page.

    Parameters

    • timeout: number

    Returns MenuPage

Generated using TypeDoc