Exemplo n.º 1
0
        private void TryIncrementUnicodeFromMessage(string content, DiscordUser user)
        {
            var emojis = content.Codepoints()
                         .Where(o => Emoji.IsKnownEmoji(o))
                         .Distinct()
                         .Select(o => o.AsString().Trim());

            foreach (var emoji in emojis)
            {
                IncrementCounter(emoji, true, user);
            }
        }