Skip to content

Struct ActionRow

zaun_bot::ActionRow · Struct

pub struct ActionRow(…)

Builds a [types::ActionRow]: up to 5 buttons, or one select.

pub fn new() -> Self

An empty row.

pub fn buttons<impl IntoIterator<Item = Button>>(buttons: impl IntoIterator<Item = Button>) -> Self

A row of buttons.

pub fn select(select: Select) -> Self

A row holding one select.

pub fn button(self, button: Button) -> Self

Adds a button.

pub fn build(self) -> ActionRow

The finished row.

Clone, Debug, Default

Full rustdoc page