Skip to content

Commit c7c1984

Browse files
authored
Update converter.py
Signed-off-by: Lumouille <[email protected]>
1 parent de84bec commit c7c1984

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

discord/ext/commands/converter.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,14 @@ async def convert(self, ctx: Context, argument: str) -> discord.PartialEmoji:
875875
id=emoji_id,
876876
)
877877

878+
if argument in UNICODE_EMOJIS:
879+
return discord.PartialEmoji.with_state(
880+
ctx.bot._connection,
881+
animated=False,
882+
name=argument,
883+
id=None,
884+
)
885+
878886
raise PartialEmojiConversionFailure(argument)
879887

880888

0 commit comments

Comments
 (0)