diff options
| author | Rapptz <[email protected]> | 2017-04-12 05:00:50 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-04-12 05:00:50 -0400 |
| commit | 3e15f46dcf12d1753f3d14860b913dd365361a39 (patch) | |
| tree | b475255344046bcd845e6cd7f38208676276df67 | |
| parent | [commands] Export missing built-in converters. (diff) | |
| download | discord.py-3e15f46dcf12d1753f3d14860b913dd365361a39.tar.xz discord.py-3e15f46dcf12d1753f3d14860b913dd365361a39.zip | |
[commands] Bot.get_all_emojis no longer exists.
| -rw-r--r-- | discord/ext/commands/converter.py | 4 |
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)) |