Package org.teleight.teleightbots.menu
Class MenuImpl
java.lang.Object
org.teleight.teleightbots.menu.MenuImpl
- All Implemented Interfaces:
Menu
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.teleight.teleightbots.menu.Menu
Menu.Builder -
Constructor Summary
Constructors -
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.void@NotNull InlineKeyboardMarkupReturns the keyboard of the menu.int@Nullable String@NotNull StringgetText()@NotNull MenuSets the text of the menu.
-
Constructor Details
-
MenuImpl
-
-
Method Details
-
addRow
Description copied from interface:MenuAdds a row of MenuButtons to the menu. -
addRow
Description copied from interface:MenuAdds a row of MenuButtons to the menu. -
getMenuId
public int getMenuId() -
getMenuName
- Specified by:
getMenuNamein interfaceMenu- Returns:
- The name of the menu, or null if it is not set.
-
getText
-
setText
Description copied from interface:MenuSets the text of the menu. -
getKeyboard
Description copied from interface:MenuReturns the keyboard of the menu.- Specified by:
getKeyboardin interfaceMenu- Returns:
- The keyboard of the menu.
-
createKeyboard
@Internal public void createKeyboard()
-