From 7f99be739aa7f11b6323a08d9435acb784aeb011 Mon Sep 17 00:00:00 2001 From: Souji Date: Tue, 14 Jan 2020 11:28:19 +0100 Subject: [PATCH] docs(MessageMentions): add sort order notice (#3693) * mention order returned from API * not left to right in text --- src/structures/MessageMentions.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/structures/MessageMentions.js b/src/structures/MessageMentions.js index 29a029bf7..81bd791c3 100644 --- a/src/structures/MessageMentions.js +++ b/src/structures/MessageMentions.js @@ -42,6 +42,7 @@ class MessageMentions { if (users instanceof Collection) { /** * Any users that were mentioned + * Order as received from the API, not left to right by occurence in the message content * @type {Collection} */ this.users = new Collection(users); @@ -63,6 +64,7 @@ class MessageMentions { if (roles instanceof Collection) { /** * Any roles that were mentioned + * Order as received from the API, not left to right by occurence in the message content * @type {Collection} */ this.roles = new Collection(roles); @@ -104,6 +106,7 @@ class MessageMentions { if (crosspostedChannels instanceof Collection) { /** * A collection of crossposted channels + * Order as received from the API, not left to right by occurence in the message content * @type {Collection} */ this.crosspostedChannels = new Collection(crosspostedChannels); @@ -127,6 +130,7 @@ class MessageMentions { /** * Any members that were mentioned (only in {@link TextChannel}s) + * Order as received from the API, not left to right by occurence in the message content * @type {?Collection} * @readonly */ @@ -143,6 +147,7 @@ class MessageMentions { /** * Any channels that were mentioned + * Order as received from the API, not left to right by occurence in the message content * @type {Collection} * @readonly */