Fix bug with mentions not working.

This commit is contained in:
Rapptz committed 2015-10-02 21:35:16 -04:00
1 parent ba62bc414e
commit 8c1aa2ccc5
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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 []