Skip to main content

Converter of discord emoji and unicode emoji.

Project description

discord-emoji

PyPI PyPI - Downloads
This lib converts discord emoji and unicode emoji.

Install

pip install discord-emoji

Usage

>>> 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..."

Licence

Please see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discord-emoji-1.3.2.tar.gz (38.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page