Page

open class Page(val builder: suspend EmbedBuilder.() -> Unit) : KordExKoinComponent

Representation of a single paginator page. You can extend this to customise it if you wish!

Parameters

builder

Embed builder callable for building the page's embed

Constructors

Link copied to clipboard
constructor(builder: suspend EmbedBuilder.() -> Unit)

Properties

Link copied to clipboard
open val bot: ExtensibleBot

Current instance of the bot.

Link copied to clipboard
open val builder: suspend EmbedBuilder.() -> Unit

Functions

Link copied to clipboard
open suspend fun build(locale: Locale, pageNum: Int, chunkSize: Int, pages: Int, group: Key?, groupIndex: Int, groups: Int, shouldMutateFooter: Boolean = true, shouldPutFooterInDescription: Boolean = false, mutator: PageMutator? = null): suspend EmbedBuilder.() -> Unit

Create an embed builder for this page.

Link copied to clipboard
open override fun getKoin(): Koin

Get the associated Koin instance.