Fix bug with mentions not working.

This commit is contained in:
Rapptz 2015-10-02 21:31:53 -04:00
parent ba62bc414e
commit 8c1aa2ccc5
2 changed files with 3 additions and 3 deletions

View File

@ -15,8 +15,8 @@ __title__ = 'discord'
__author__ = 'Rapptz' __author__ = 'Rapptz'
__license__ = 'MIT' __license__ = 'MIT'
__copyright__ = 'Copyright 2015 Rapptz' __copyright__ = 'Copyright 2015 Rapptz'
__version__ = '0.6.2' __version__ = '0.6.3'
__build__ = 0x006020 __build__ = 0x006030
from .client import Client from .client import Client
from .user import User from .user import User

View File

@ -212,7 +212,7 @@ class Client(object):
if isinstance(mentions, list): if isinstance(mentions, list):
return [user.id for user in mentions] return [user.id for user in mentions]
elif mentions == True: elif mentions == True:
return re.findall(r'@<(\d+)>', content) return re.findall(r'<@(\d+)>', content)
else: else:
return [] return []