Skip to content

Commit

Permalink
docs(MessageMentions): add sort order notice (#3693)
Browse files Browse the repository at this point in the history
* mention order returned from API
* not left to right in text
  • Loading branch information
almostSouji authored and SpaceEEC committed Jan 14, 2020
1 parent 75fe1fa commit 7f99be7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/structures/MessageMentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand Down

0 comments on commit 7f99be7

Please sign in to comment.