Converter between discord emoji and unicode emoji.
Project description
discord-emoji
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
Release history Release notifications | RSS feed
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.4.2.tar.gz
(36.0 kB
view hashes)
Built Distribution
Close
Hashes for discord_emoji-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | faccb77aab5f5052d3a9ad53b55c7fa4325e7f0593080027978a0b50cfb05591 |
|
MD5 | 0ecfd08cbeca27332e4d58a6d09362da |
|
BLAKE2b-256 | a37585c4e6e0c8c378cddf2d4c470be592bdfe702654783bace409e71818c7c6 |