Skip to content

zaun_bot::Select · Enum

pub enum Select { … }

Builds a select menu: string options or members, roles, mentionables or channels.

Type 3.

Types 5–8.

pub fn strings<impl Into<String>>(custom_id: impl Into<String>, options: &[(&str, &str)]) -> Self

A string select with these (label, value) options (≤ 25).

pub fn entities<impl Into<String>>(kind: EntityKind, custom_id: impl Into<String>) -> Self

A member, role, mentionable or channel select.

pub fn placeholder<impl Into<String>>(self, text: impl Into<String>) -> Self

Placeholder text (≤ 150).

pub fn range(self, min: u8, max: u8) -> Self

How many values may be picked (0–25).

Clone, Debug

Full rustdoc page