Enum Select
zaun_bot::Select · Enum
pub enum Select { … }Builds a select menu: string options or members, roles, mentionables or channels.
Variants
Section titled “Variants”Strings(StringSelect)
Section titled “Strings(StringSelect)”Type 3.
Entities(EntitySelect)
Section titled “Entities(EntitySelect)”Types 5–8.
Methods
Section titled “Methods”strings
Section titled “strings”pub fn strings<impl Into<String>>(custom_id: impl Into<String>, options: &[(&str, &str)]) -> SelfA string select with these (label, value) options (≤ 25).
entities
Section titled “entities”pub fn entities<impl Into<String>>(kind: EntityKind, custom_id: impl Into<String>) -> SelfA member, role, mentionable or channel select.
placeholder
Section titled “placeholder”pub fn placeholder<impl Into<String>>(self, text: impl Into<String>) -> SelfPlaceholder text (≤ 150).
pub fn range(self, min: u8, max: u8) -> SelfHow many values may be picked (0–25).
Trait implementations
Section titled “Trait implementations”Clone, Debug