From 101d8d52b6ee028f537de1d6f08d306b70acef6e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 28 Nov 2015 20:16:17 -0500 Subject: [PATCH] Add warning for Message.mentions order being non-deterministic. --- discord/message.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discord/message.py b/discord/message.py index 13526f4ad..9f31a1350 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