diff options
| author | Joshua Butt <[email protected]> | 2017-12-22 14:59:21 +1000 |
|---|---|---|
| committer | Joshua Butt <[email protected]> | 2017-12-22 14:59:21 +1000 |
| commit | f5a443fa8ff1b8ce520b15ea2f83c3830ce0f66f (patch) | |
| tree | 191f4b11360ae6dfa2591d94b523e5d414d1d337 | |
| parent | Use the proper endpoint for removing your own reaction. (diff) | |
| download | discord.py-f5a443fa8ff1b8ce520b15ea2f83c3830ce0f66f.tar.xz discord.py-f5a443fa8ff1b8ce520b15ea2f83c3830ce0f66f.zip | |
Add support for animated emoji to commands ext EmojiConverter
| -rw-r--r-- | discord/ext/commands/converter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 47ce8cc8..267a7d40 100644 --- a/discord/ext/commands/converter.py +++ b/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 |