Skip to content

zaun_bot::Options · Trait

pub trait Options { … }

Reads option and modal values by name.

fn value(&self, name: &str) -> Option<&OptionValue>;

The value named name.

fn str(&self, name: &str) -> Option<&str>;

A text value (string options, modal text inputs).

fn int(&self, name: &str) -> Option<i64>;

An integer value.

fn bool(&self, name: &str) -> Option<bool>;

A boolean value.

Full rustdoc page