Ejemplo n.º 1
0
        private void UpdateReactions()
        {
            foreach (var reaction in Message.Reactions)
            {
                if (!Reactions.Contains(reaction))
                {
                    _context.Post((o) => Reactions.Add(reaction), null);
                }
            }

            foreach (var reaction in Reactions.ToList())
            {
                if (!Message.Reactions.Contains(reaction))
                {
                    _context.Post((o) => Reactions.Remove(reaction), null);
                }
            }
        }