From 3e15f46dcf12d1753f3d14860b913dd365361a39 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Wed, 12 Apr 2017 05:00:50 -0400 Subject: [PATCH] [commands] Bot.get_all_emojis no longer exists. --- discord/ext/commands/converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 2272f7ae9..c3d1c787f 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -245,7 +245,7 @@ class EmojiConverter(IDConverter): result = discord.utils.get(guild.emojis, name=self.argument) if result is None: - result = discord.utils.get(bot.get_all_emojis(), name=self.argument) + result = discord.utils.get(bot.emojis, name=self.argument) else: emoji_id = int(match.group(1)) @@ -254,7 +254,7 @@ class EmojiConverter(IDConverter): result = discord.utils.get(guild.emojis, id=emoji_id) if result is None: - result = discord.utils.get(bot.get_all_emojis(), id=emoji_id) + result = discord.utils.get(bot.emojis, id=emoji_id) if result is None: raise BadArgument('Emoji "{}" not found.'.format(self.argument))