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); } }
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; } }