Menu

data class Menu(pages: MutableList<EmbedBuilder>, buttons: MutableList<MutableList<DktButton>>)

Contains menu data and navigation functions.

Constructors

Link copied to clipboard
fun Menu(pages: MutableList<EmbedBuilder>, buttons: MutableList<MutableList<DktButton>>)

Functions

Link copied to clipboard
fun loadPage(page: Int): EmbedBuilder

Load a specific page by index

Link copied to clipboard
fun nextPage(): EmbedBuilder

Navigate to the next page (wraps)

Link copied to clipboard
fun previousPage(): EmbedBuilder

Navigate to the previous page (wraps)