Browse Source

Add support for animated emoji to commands ext EmojiConverter

pull/962/head
Joshua Butt 7 years ago
parent
commit
f5a443fa8f
  1. 2
      discord/ext/commands/converter.py

2
discord/ext/commands/converter.py

@ -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

Loading…
Cancel
Save