Add support for animated emoji to commands ext EmojiConverter

This commit is contained in:
Joshua Butt committed 2017-12-22 14:59:21 +10:00
1 parent da9828c41f
commit f5a443fa8f
1 file changed
+1 -1
+1 -1
View File
@@ -370,7 +370,7 @@ class EmojiConverter(IDConverter):
"""
@asyncio.coroutine
def convert(self, ctx, argument):
match = self._get_id_match(argument) or re.match(r'<:[a-zA-Z0-9\_]+:([0-9]+)>$', argument)
match = self._get_id_match(argument) or re.match(r'<a?:[a-zA-Z0-9\_]+:([0-9]+)>$', argument)
result = None
bot = ctx.bot
guild = ctx.guild