Expand description
Mentions (specification §8.5): the text that shows one and the list that notifies.
Structs§
- Mentions
- Who a message mentions, as the protocol has it (
Message::mentions).mentions: {everyone, members, roles}(§8.5).
Constants§
- EVERYONE
- The text that shows
@everyone.
Functions§
- member
- The text that shows a member mention,
<@id>(discord.jsuserMention). It only shows where the mention is: the message’s mentions list is what notifies. - parse
- The mentions
contentshows:<@id>(and Discord’s<@!id>) for members,<@&id>for roles,@everyone. Each id once, in order, at most 50 members and 20 roles; malformed ids are skipped. Use it on text this member wrote, not on text from someone else. - role
- The text that shows a role mention,
<@&id>(discord.jsroleMention).