#[non_exhaustive]
pub enum Kind {
Darts,
Dice,
Basketball,
Football,
SlotMachine,
Bowling,
Unknown(String),
}
Expand description
Represents the kind of a thrown dice.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Darts
🎯
Dice
🎲
Basketball
🏀
Football
⚽
SlotMachine
🎰
Bowling
🎳
Unknown(String)
Some emoji tbot
isn’t aware of yet.
Please note that this field exists only to prevent parsing errors caused
by unknown dice kinds, it is not meant to be matched on
or constructed unless as a temporary workaround until a new version
of tbot
with the new dice kind is released. In other words, we reserve
the right to add new kinds to this enum and release them in patch
updates, and we won’t consider any breakage caused by this as a bug.
You should also not construct this variant with an emoji covered by the
above variants.
Implementations§
source§impl Kind
impl Kind
sourcepub fn is_basketball(&self) -> bool
pub fn is_basketball(&self) -> bool
Returns true
if self
is of variant Basketball
.
sourcepub fn is_football(&self) -> bool
pub fn is_football(&self) -> bool
Returns true
if self
is of variant Football
.
sourcepub fn is_slot_machine(&self) -> bool
pub fn is_slot_machine(&self) -> bool
Returns true
if self
is of variant SlotMachine
.
sourcepub fn is_bowling(&self) -> bool
pub fn is_bowling(&self) -> bool
Returns true
if self
is of variant Bowling
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true
if self
is of variant Unknown
.