Function mention::parse
zaun_bot::mention::parse · Function
pub fn parse(content: &str) -> MentionsThe mentions content shows: <@id> (and Discord’s <@!id>) for members, <@&id> for
roles, @everyone. Each id once, in order, at most MAX_MEMBERS members and
MAX_ROLES roles; malformed ids are skipped. Use it only on text the bot wrote: on
text from members it would mention whoever they named.