1
0
mirror of https://github.com/Rapptz/discord.py.git synced 2025-05-14 09:50:03 +00:00

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

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

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