Menu - object-Object/discordia-reaction-menu GitHub Wiki
This page details how to properly create a Menu object using rm.Menu()
.
Properties
Property | Type | Optional | Autogenerated | Description |
---|---|---|---|---|
author | User | ✔ | The user who ran the command to open the menu. | |
history | table | ✔ | Table of pages previously visited, used for the back button. | |
maxChoices | Message | ✔ | ✔ (if not provided) | The number of choice reactions to add during setup. This should be the maximum possible number of choices in any page in your menu. Defaults to 9 if omitted. |
message | Message | ✔ | The menu's message object. | |
startPage | Page | The page that should be shown first, when the menu is first sent. startPage.parent and startPage.basePage should both refer to startPage . |
||
timeout | number | ✔ | ✔ (if not provided) | The amount of time (in milliseconds) that must pass after an interaction before the menu will remove its reactions, go to the timeout page, and stop responding. Defaults to 120000. Minimum: 1000. |
type | string | ✔ | The type of the object. |