Struct prelude::Mentions
zaun_bot::prelude::Mentions · Struct
pub struct Mentions { … }Fields
Section titled “Fields”everyone: bool
Section titled “everyone: bool”members: Vec<Id>
Section titled “members: Vec<Id>”roles: Vec<Id>
Section titled “roles: Vec<Id>”Methods
Section titled “Methods”has_member
Section titled “has_member”pub fn has_member(&self, id: &str) -> boolWhether member id is named.
has_role
Section titled “has_role”pub fn has_role(&self, id: &str) -> boolWhether role id is named.
includes
Section titled “includes”pub fn includes(&self, member_id: &str, role_ids: &[Id]) -> boolWhether a member with member_id and role_ids is mentioned: by id, by one of its
roles, or by @everyone.
is_empty
Section titled “is_empty”pub fn is_empty(&self) -> boolWhether nobody is mentioned.
Trait implementations
Section titled “Trait implementations”Clone, Debug