aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/converter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py
index 2272f7ae..c3d1c787 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))