Struct ui::OptionBuilder
zaun_client::ui::OptionBuilder · Struct
pub struct OptionBuilder(…)An option of a slash command.
Methods
Section titled “Methods”pub fn new(kind: OptionType, name: &str, description: &str) -> SelfAn option of kind.
string
Section titled “string”pub fn string(name: &str, description: &str) -> SelfText.
integer
Section titled “integer”pub fn integer(name: &str, description: &str) -> SelfA whole number.
pub fn user(name: &str, description: &str) -> SelfA member.
required
Section titled “required”pub const fn required(self) -> SelfMust be given.
autocomplete
Section titled “autocomplete”pub const fn autocomplete(self) -> SelfThe bot suggests values as the member types.
choice
Section titled “choice”pub fn choice(self, name: &str, value: &str) -> SelfA fixed string choice.
Trait implementations
Section titled “Trait implementations”Clone, Debug