Package-level declarations

Types

Link copied to clipboard
abstract class BaseButtonPaginator(val pages: Pages, val chunkedPages: Int = 1, val owner: UserBehavior? = null, val timeoutSeconds: Long? = null, val keepEmbed: Boolean = true, val switchEmoji: ReactionEmoji = if (pages.groups.size == 2) EXPAND_EMOJI else SWITCH_EMOJI, val mutator: PageTransitionCallback? = null, locale: Locale? = null) : BasePaginator

Abstract class containing some common functionality needed by interactive button-based paginators.

Link copied to clipboard
abstract class BasePaginator(val pages: Pages, val chunkedPages: Int = 1, val owner: UserBehavior? = null, val timeoutSeconds: Long? = null, val keepEmbed: Boolean = true, val switchEmoji: ReactionEmoji = if (pages.groups.size == 2) EXPAND_EMOJI else SWITCH_EMOJI, val mutator: PageTransitionCallback? = null, locale: Locale? = null) : KordExKoinComponent

Abstract class intended for building paginators.

Link copied to clipboard
class EphemeralResponsePaginator(val pages: Pages, val owner: UserBehavior? = null, val chunkedPages: Int = 1, val timeoutSeconds: Long? = null, val switchEmoji: ReactionEmoji = if (pages.groups.size == 2) EXPAND_EMOJI else SWITCH_EMOJI, val mutator: PageTransitionCallback? = null, locale: Locale? = null, val interaction: EphemeralMessageInteractionResponseBehavior) : BaseButtonPaginator

Class representing a button-based paginator that operates by editing the given ephemeral interaction response.

Link copied to clipboard
class MessageButtonPaginator(val pages: Pages, val chunkedPages: Int = 1, val owner: UserBehavior? = null, val timeoutSeconds: Long? = null, val keepEmbed: Boolean = true, val switchEmoji: ReactionEmoji = if (pages.groups.size == 2) EXPAND_EMOJI else SWITCH_EMOJI, val mutator: PageTransitionCallback? = null, locale: Locale? = null, val pingInReply: Boolean = true, val targetChannel: MessageChannelBehavior? = null, val targetMessage: Message? = null) : BaseButtonPaginator

Class representing a button-based paginator that operates on standard messages.

Link copied to clipboard
class PublicFollowUpPaginator(val pages: Pages, val chunkedPages: Int = 1, val owner: UserBehavior? = null, val timeoutSeconds: Long? = null, val keepEmbed: Boolean = true, val switchEmoji: ReactionEmoji = if (pages.groups.size == 2) EXPAND_EMOJI else SWITCH_EMOJI, val mutator: PageTransitionCallback? = null, locale: Locale? = null, val interaction: FollowupPermittingInteractionResponseBehavior) : BaseButtonPaginator

Class representing a button-based paginator that operates by creating and editing a follow-up message for the given public interaction response.

Link copied to clipboard
class PublicResponsePaginator(val pages: Pages, val chunkedPages: Int = 1, val owner: UserBehavior? = null, val timeoutSeconds: Long? = null, val keepEmbed: Boolean = true, val switchEmoji: ReactionEmoji = if (pages.groups.size == 2) EXPAND_EMOJI else SWITCH_EMOJI, val mutator: PageTransitionCallback? = null, locale: Locale? = null, val interaction: PublicMessageInteractionResponseBehavior) : BaseButtonPaginator

Class representing a button-based paginator that operates by editing the given public interaction response.

Properties

Link copied to clipboard
val DELETE_EMOJI: ReactionEmoji.Unicode

Emoji used to destroy the paginator and delete the message.

Link copied to clipboard
val EXPAND_EMOJI: ReactionEmoji.Unicode

Group switch emoji, information icon.

Link copied to clipboard
val FINISH_EMOJI: ReactionEmoji.Unicode

Emoji used to destroy the paginator without deleting the message.

Link copied to clipboard
val FIRST_PAGE_EMOJI: ReactionEmoji.Unicode

Emoji used to jump to the first page.

Link copied to clipboard
val LAST_PAGE_EMOJI: ReactionEmoji.Unicode

Emoji used to jump to the last page.

Link copied to clipboard
val LEFT_EMOJI: ReactionEmoji.Unicode

Emoji used to jump to the previous page.

Link copied to clipboard
val RIGHT_EMOJI: ReactionEmoji.Unicode

Emoji used to jump to the next page.

Link copied to clipboard
val SWITCH_EMOJI: ReactionEmoji.Unicode

Group switch emoji, counter-clockwise arrows icon.

Functions

Link copied to clipboard
inline fun EphemeralMessageInteractionResponseBehavior.editingPaginator(defaultGroup: Key = EMPTY_KEY, locale: Locale? = null, builder: PaginatorBuilder.() -> Unit): EphemeralResponsePaginator

Create a paginator that edits the original interaction. This is the only option for an ephemeral interaction, as it's impossible to edit an ephemeral follow-up.

inline fun PublicMessageInteractionResponseBehavior.editingPaginator(defaultGroup: Key = EMPTY_KEY, locale: Locale? = null, builder: PaginatorBuilder.() -> Unit): PublicResponsePaginator

Create a paginator that edits the original interaction.

Link copied to clipboard
fun EphemeralResponsePaginator(builder: PaginatorBuilder, interaction: EphemeralMessageInteractionResponseBehavior): EphemeralResponsePaginator

Convenience function for creating an interaction button paginator from a paginator builder.

Link copied to clipboard
fun MessageButtonPaginator(pingInReply: Boolean = true, targetChannel: MessageChannelBehavior? = null, targetMessage: Message? = null, builder: PaginatorBuilder): MessageButtonPaginator

Convenience function for creating a message button paginator from a paginator builder.

Link copied to clipboard
fun PublicFollowUpPaginator(builder: PaginatorBuilder, interaction: FollowupPermittingInteractionResponseBehavior): PublicFollowUpPaginator

Convenience function for creating an interaction button paginator from a paginator builder.

Link copied to clipboard
fun PublicResponsePaginator(builder: PaginatorBuilder, interaction: PublicMessageInteractionResponseBehavior): PublicResponsePaginator

Convenience function for creating an interaction button paginator from a paginator builder.

Link copied to clipboard
inline fun FollowupPermittingInteractionResponseBehavior.respondingPaginator(defaultGroup: Key = EMPTY_KEY, locale: Locale? = null, builder: PaginatorBuilder.() -> Unit): PublicFollowUpPaginator

Create a paginator that creates a follow-up message, and edits that.