Skip to main content

Module ui

Module ui 

Source
Expand description

Builders for bot messages and commands (§8.14), named as in the zaun-bot SDK: buttons, selects and rows, Components V2 layout, modals, and slash commands.

Structs§

ActionRow
A row of up to five buttons, or one select.
Button
A button: one that sends an interaction (custom_id), or a link the reader confirms.
Checkbox
One yes/no box (type 23); never required.
CheckboxGroup
Several choices (type 22).
CommandBuilder
A slash, user or message command.
Container
A box around other components (type 17).
File
One attached file (type 13).
FileUpload
Files the member uploads (type 19).
MediaGallery
Up to ten pictures (type 12).
Modal
A modal: up to five labelled inputs and texts.
OptionBuilder
An option of a slash command.
RadioGroup
One choice among options (type 21).
Section
One to three texts with a button or thumbnail beside them (type 9).
Select
A select menu.
Separator
A line or a gap (type 14).
TextDisplay
Markdown text (type 10).
TextInput
A text field.
Thumbnail
A picture beside a section (type 11).

Enums§

EntityKind
What an entity select offers.