mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
docs(MessageMentions): add sort order notice (#3693)
* mention order returned from API * not left to right in text
This commit is contained in:
parent
75fe1faf2f
commit
7f99be739a
1 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ class MessageMentions {
|
|||
if (users instanceof Collection) {
|
||||
/**
|
||||
* Any users that were mentioned
|
||||
* <info>Order as received from the API, not left to right by occurence in the message content</info>
|
||||
* @type {Collection<Snowflake, User>}
|
||||
*/
|
||||
this.users = new Collection(users);
|
||||
|
|
@ -63,6 +64,7 @@ class MessageMentions {
|
|||
if (roles instanceof Collection) {
|
||||
/**
|
||||
* Any roles that were mentioned
|
||||
* <info>Order as received from the API, not left to right by occurence in the message content</info>
|
||||
* @type {Collection<Snowflake, Role>}
|
||||
*/
|
||||
this.roles = new Collection(roles);
|
||||
|
|
@ -104,6 +106,7 @@ class MessageMentions {
|
|||
if (crosspostedChannels instanceof Collection) {
|
||||
/**
|
||||
* A collection of crossposted channels
|
||||
* <info>Order as received from the API, not left to right by occurence in the message content</info>
|
||||
* @type {Collection<Snowflake, CrosspostedChannel>}
|
||||
*/
|
||||
this.crosspostedChannels = new Collection(crosspostedChannels);
|
||||
|
|
@ -127,6 +130,7 @@ class MessageMentions {
|
|||
|
||||
/**
|
||||
* Any members that were mentioned (only in {@link TextChannel}s)
|
||||
* <info>Order as received from the API, not left to right by occurence in the message content</info>
|
||||
* @type {?Collection<Snowflake, GuildMember>}
|
||||
* @readonly
|
||||
*/
|
||||
|
|
@ -143,6 +147,7 @@ class MessageMentions {
|
|||
|
||||
/**
|
||||
* Any channels that were mentioned
|
||||
* <info>Order as received from the API, not left to right by occurence in the message content</info>
|
||||
* @type {Collection<Snowflake, GuildChannel>}
|
||||
* @readonly
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue