Skip to content

Struct prelude::Mentions

zaun_bot::prelude::Mentions · Struct

pub struct Mentions { … }
pub fn has_member(&self, id: &str) -> bool

Whether member id is named.

pub fn has_role(&self, id: &str) -> bool

Whether role id is named.

pub fn includes(&self, member_id: &str, role_ids: &[Id]) -> bool

Whether a member with member_id and role_ids is mentioned: by id, by one of its roles, or by @everyone.

pub fn is_empty(&self) -> bool

Whether nobody is mentioned.

Clone, Debug

Full rustdoc page