示例#1
0
 internal void AddReaction(DiscordEmoji dr, ulong m)
 {
     if (!_membersvoted.Contains(m))
     {
         if (Reactions.ContainsKey(dr))
         {
             Reactions[dr]++;
         }
         else
         {
             Reactions.TryAdd(dr, 1);
         }
         _membersvoted.Add(m);
     }
 }
示例#2
0
 public void CacheReaction(int a, int b, WowUnitReaction reaction)
 {
     if (!Reactions.ContainsKey(a))
     {
         Reactions.TryAdd(a, new Dictionary <int, WowUnitReaction>()
         {
             { b, reaction }
         });
     }
     else if (!Reactions[a].ContainsKey(b))
     {
         Reactions[a].Add(b, reaction);
     }
     else
     {
         Reactions[a][b] = reaction;
     }
 }