Skip to content
Interfacecorev0.11.0

PaginatorControls

The controls passed to render.

interface PaginatorControls

button()

A fresh ButtonBuilder for one control, already stamped with its target page and disabled-at-bounds state. Call only cosmetic setters on it, because a setCustomId or setStyle(Link) un-routes it.

button(
    key: ControlKey,
    cosmetics?: ControlCosmetics
): ButtonBuilder

row()

Assemble an action row of the chosen controls, in order.

Throws:

A SeedcordRangeError when keys is empty or holds more than five controls.

Throws:

A SeedcordTypeError when keys holds the same control twice.