parseEmojis = (str) => {
  if (!str) {
    throw new Error("[parseEmoji]: str argument not provided");
  }
  return str.replace(/:\w+:/gm, (emoji) => {
    return toEmoji.get(emoji) || "";
  });
}
Parse emoji from string.

@param {string} str String to parse emoji from.
@returns {string} String with emoji parsed.