Expand description
Mentions: the text that shows them (<@id>, <@&id>, @everyone) and what a message
names in its mentions. Zaun names mentions explicitly: the host never reads them from the
text, so a message notifies only who its Mentions list.
Constants§
- EVERYONE
- The text that shows
@everyone. - MAX_
MEMBERS - Most members one message may mention (spec §12).
- MAX_
ROLES - Most roles one message may mention (spec §12).
Functions§
- is_id
- Whether
idis a well-formed Zaun id: 16 bytes in unpadded base64url (22 characters, the last one ofA,Q,g,w). - member
- The text that shows a member mention:
<@id>(discord.jsuserMention). - none
- No mentions.
- parse
- The mentions
contentshows:<@id>(and Discord’s<@!id>) for members,<@&id>for roles,@everyone. Each id once, in order, at mostMAX_MEMBERSmembers andMAX_ROLESroles; malformed ids are skipped. Use it only on text the bot wrote: on text from members it would mention whoever they named. - role
- The text that shows a role mention:
<@&id>(discord.jsroleMention).