Skip to content

Commit b2a42ff

Browse files
committed
Merge branch 'revert-2814-revert-2774-emoji' of https://github.com/Pycord-Development/pycord into revert-2814-revert-2774-emoji
2 parents 78e0091 + 3143637 commit b2a42ff

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

discord/ext/commands/converter.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
)
4242

4343
import discord
44+
from discord.partial_emoji import EMOJIS_MAP
4445

4546
from .errors import *
4647
from discord.utils import UNICODE_EMOJIS
@@ -874,14 +875,6 @@ async def convert(self, ctx: Context, argument: str) -> discord.PartialEmoji:
874875
id=emoji_id,
875876
)
876877

877-
if argument in UNICODE_EMOJIS:
878-
return discord.PartialEmoji.with_state(
879-
ctx.bot._connection,
880-
animated=False,
881-
name=argument,
882-
id=None,
883-
)
884-
885878
raise PartialEmojiConversionFailure(argument)
886879

887880

0 commit comments

Comments
 (0)