aboutsummaryrefslogtreecommitdiff
path: root/discord/ext/commands
diff options
context:
space:
mode:
Diffstat (limited to 'discord/ext/commands')
-rw-r--r--discord/ext/commands/converter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py
index 13d7e41c..98d601fd 100644
--- a/discord/ext/commands/converter.py
+++ b/discord/ext/commands/converter.py
@@ -400,7 +400,8 @@ class PartialEmojiConverter(Converter):
emoji_name = match.group(2)
emoji_id = int(match.group(3))
- return discord.PartialEmoji(animated=emoji_animated, name=emoji_name, id=emoji_id)
+ return discord.PartialEmoji.with_state(ctx.bot._connection, animated=emoji_animated, name=emoji_name,
+ id=emoji_id)
raise BadArgument('Couldn\'t convert "{}" to PartialEmoji.'.format(argument))