mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-29 08:37:23 +00:00
Fix bug with mentions not working.
This commit is contained in:
parent
ba62bc414e
commit
8c1aa2ccc5
@ -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
|
||||||
|
@ -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 []
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user