@emoji-platform-data/discord
v0.7.0
Published
Static export of Discord emoji picker metadata for unicode emojis. 💬
Readme
Usage
npm i @emoji-platform-data/discordimport { byEmoji, byTitle } from "@emoji-platform-data/discord";
console.log(byEmoji["👍"]);
/*
{
aliases: ["+1", "thumbup", "thumbs_up"],
category: "people",
emoji: "👍",
keywords: ["+1", "good", "hand", "like", "thumb", "up", "yes"],
name: "thumbsup",
order: 134,
unicodeVersion: 6,
}
*/byEmojitakes a glyph as any platform writes it, with or without its U+FE0F:byEmoji["⚓️"]andbyEmoji["⚓"]are the same entry.byTitletakes a PascalCase Emojipedia title.
Each entry is a DiscordItem describing one emoji as Discord's own emoji picker knows it:
nameis the shortcode Discord writes the emoji as, andaliasesare the others it accepts.keywordsare the picker's other search terms, such ascelebratefor 🎉 (tada): country flags, keycaps, regional indicators, and some sequences, such as most families, have none.orderis the emoji's position in the picker, across all categories.
This package is only static JSON and types, with no runtime dependencies, and its data is also in the combined emoji-platform-data.
Where This Data Comes From
This is a snapshot of the emoji data in Discord's web client JavaScript bundle, with its en-US keywords, and DEVELOPMENT.md explains how to refresh it.
Skin tone variants, such as wave_tone3, are left out since they have no terms of their own.
The shortcodes, keywords, categories, and ordering are Discord's: this package's MIT license only covers the code that packages them, and this package includes no Discord emoji artwork.
