From e88c194e9af044af25020c64c72f1746ec4cf67e Mon Sep 17 00:00:00 2001 From: Rapptz Date: Thu, 19 Nov 2015 22:20:07 -0500 Subject: [PATCH] Fix is_private check in mentions array handling. --- discord/message.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/message.py b/discord/message.py index 1822f4cbd..209c14197 100644 --- a/discord/message.py +++ b/discord/message.py @@ -99,7 +99,10 @@ class Message(object): def _handle_mentions(self, mentions): self.mentions = [] - if self.channel is not None and not self.channel.is_private: + if getattr(self.channel, 'is_private', True): + return + + if self.channel is not None: for mention in mentions: id_search = mention.get('id') member = utils.find(lambda m: m.id == id_search, self.server.members)