Package org.teleight.teleightbots.menu
Interface Menu
- All Known Implementing Classes:
MenuImpl
Basic interface for a Menu. It provides methods to manipulate and retrieve information about the menu.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NotNull MenuaddRow(@NotNull List<InlineKeyboardButton> buttons) Adds a row of MenuButtons to the menu.@NotNull MenuaddRow(@NotNull InlineKeyboardButton... buttons) Adds a row of MenuButtons to the menu.@NotNull InlineKeyboardMarkupReturns the keyboard of the menu.int@Nullable String@Nullable StringgetText()@NotNull MenuSets the text of the menu.
-
Method Details
-
getMenuId
int getMenuId()- Returns:
- The ID of the menu.
-
getMenuName
- Returns:
- The name of the menu, or null if it is not set.
-
getText
- Returns:
- The text of the menu, or null if it is not set.
-
setText
Sets the text of the menu.- Parameters:
text- The text to set.- Returns:
- The Menu instance.
-
addRow
Adds a row of MenuButtons to the menu.- Parameters:
buttons- The MenuButtons to add.- Returns:
- The Menu instance.
-
addRow
Adds a row of MenuButtons to the menu.- Parameters:
buttons- The list of MenuButtons to add.- Returns:
- The Menu instance.
-
getKeyboard
Returns the keyboard of the menu.- Returns:
- The keyboard of the menu.
-