mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-24 18:13:00 +00:00
Add support for animated emoji to commands ext EmojiConverter
This commit is contained in:
@@ -370,7 +370,7 @@ class EmojiConverter(IDConverter):
|
|||||||
"""
|
"""
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def convert(self, ctx, argument):
|
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
|
result = None
|
||||||
bot = ctx.bot
|
bot = ctx.bot
|
||||||
guild = ctx.guild
|
guild = ctx.guild
|
||||||
|
|||||||
Reference in New Issue
Block a user