Emojify

`breads.emojify`

Function: emojify_discord. Return string with :discord_emojis: ready to be sent.

function emojify_discord(string: string, ignore_chars?: number[]): string;

Example:

 const emojify_discord = require("103-breads").emojify.emojify_discord;
 
 console.log(emojify_discord("123")); // :one: :two: :three:
 console.log(emojify_discord("a")); // :regional_indicator_a:
 console.log(emojify_discord("123", [0, 2])); // 1:two:3

Last updated