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:
parent
ba62bc414e
commit
8c1aa2ccc5
discord
@ -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 []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user