@discord-user-card/emojis
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

@Discord-User-Card/Emojis

All the emojis supported by Discord (User Card)

Usage

import { type Category, type Emoji, emojis, emojisByCategory, findEmoji } from "@discord-user-card/emojis";

// Get all emojis
console.log(emojis); // Emoji[]

// Get emojis by category
console.log(emojisByCategory); // { [category: Category]: Emoji[] }

// Find an emoji by name
console.log(findEmoji("+1")); // Emoji | undefined
console.log(findEmoji("thumbsup")); // Emoji | undefined

// Find an emoji by the surrogate
console.log(findEmoji("👍")); // Emoji | undefined

Contributing

The list of emojis is automatically generated from the Discord Source Code (see here). Please do not manually edit the list of emojis. If an emoji is missing or incorrect, please open an issue or a pull request.

Package Sidebar

Install

npm i @discord-user-card/emojis

Weekly Downloads

1

Version

0.0.9

License

none

Unpacked Size

1.46 MB

Total Files

47

Last publish

Collaborators

  • bas950