diff options
| author | Rapptz <[email protected]> | 2015-11-28 20:16:17 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2015-11-28 20:16:17 -0500 |
| commit | 101d8d52b6ee028f537de1d6f08d306b70acef6e (patch) | |
| tree | c0496d931459f133042536b56a969cb06871e063 | |
| parent | "An array" -> "A list" for documentation purposes. (diff) | |
| download | discord.py-101d8d52b6ee028f537de1d6f08d306b70acef6e.tar.xz discord.py-101d8d52b6ee028f537de1d6f08d306b70acef6e.zip | |
Add warning for Message.mentions order being non-deterministic.
| -rw-r--r-- | discord/message.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/discord/message.py b/discord/message.py index 13526f4a..9f31a135 100644 --- a/discord/message.py +++ b/discord/message.py @@ -72,6 +72,12 @@ class Message(object): A list of :class:`Member` that were mentioned. If the message is in a private message then the list is always empty. + + .. warning:: + + The order of the mentions list is not in any particular order so you should + not rely on it. This is a discord limitation, not one with the library. + .. attribute:: channel_mentions A list of :class:`Channel` that were mentioned. If the message is in a private message |