mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-23 00:56:05 +00:00
Fix is_private check in mentions array handling.
This commit is contained in:
parent
692a6a3bc6
commit
e88c194e9a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user