This lib converts discord emoji and unicode emoji.
pip install discord-emoji
>>> import discord_emoji
>>> discord_emoji.to_unicode("thinking")
'🤔'
>>> discord_emoji.to_unicode(":thinking:")
'🤔'
>>> discord_emoji.to_discord("🤔")
'thinking'
>>> discord_emoji.to_discord("🤔", get_all=True)
['thinking', 'thinking_face']
>>> discord_emoji.to_discord("🤔", put_colons=True)
':thinking:'
>>> discord_emoji.to_uni(":thinking:")
'🤔'
>>> discord_emoji.to_dis("🤔")
'thinking'
>>> discord_emoji.to_discord_multi("🤔 This is hard! 😫 I'm tired...")
":thinking: This is hard! :tired_face: I'm tired..."
>>> discord_emoji.to_unicode_multi(":thinking: This is hard! :tired_face: I'm tired...")
"🤔 This is hard! 😫 I'm tired..."
Please see LICENSE.