

The capital A character has a code point of 0x00000041, while the 🙂 emoji character has the code point of 0x0001F642. In our examples, we'll be using 32 bit hex values, also known as UTF-32. These addresses are called their "code point" and are typically represented as a hexidecimal (aka hex) value. How do they work?Īs these emoji are normal unicode characters, they can be used anywhere unicode is supported, including here in this Github gist.Ä®ach unicode character is referenced by an "address" of the full character set. This makes them super easy to work with.Īn example of a unicode emoji is the commonly used :slight_smile: ( 🙂).Äiscord uses specifically Twemoji assets for all their unicode emojis. You send the character as-is, and receive them as-is, are universally available, and work even outside of Discord. Unicode emoji are normal characters and should be treated as standard strings. Custom emoji are a special tag representation using the custom emoji's name and snowflake ID:.Unicode emoji look like the actual emoji character, just the same as any other letter or number: 🙂.The nature of the two can be easily compared by seeing their representations in Discord message contents: On Discord, there are two different emoji types:Ä®ach needs to be handled differently, as while unicode emoji are just simple unicode characters, Discord custom emoji are special objects available only in Discord, belonging to a specific Discord guild and having their own snowflake ID. Note: This is written for those using Python 3 and discord.py, so if you're using something else please reference the relevant documentation for your language or library if you choose to use this as a general reference.
