random-unicode-emoji
A simple JavaScript package that returns random Unicode emojis.
Like this repo? Give it a
⭐ on GitHub!
✨
Install npm install random-unicode-emoji
No dependencies!
🐙
Usage // Require the module
var randomEmoji = require('random-unicode-emoji');
// Use the module
randomEmoji.random({count: 3});
// -> ["🐸", "🍇", "🚣"]
// Add custom emoji
randomEmoji.random({count: 3, custom: ['(° ͜ʖ ͡°)','(╯°□°)╯︵ ┻━┻']});
// -> ["🔥", "(° ͜ʖ ͡°)", "⚾"]
Discord Bots
This package is very popular among Discord bots. Below is an example of using the custom emoji feature to include custom Discord emojis.
randomEmoji.random({count: 3, custom: message.guild.emojis.map()});
// -> ["🤡", "<:HUH:1081269950800466059>", "😸"]
<:HUH:1081269950800466059>
translates to an emoji for a specific Discord guild.
☀️
Update npm update random-unicode-emoji
Unicode
Uses Unicode Standard Emoji from Unicode.org
Currently supports the latest Unicode Standard Version 15.0
Language
This is the JavaScript
Maintainer
Credit
Originally created by Pirijan, (@pketh)