Example #1
0
 void IUpdatableMessage.RemoveAllEmojiReactions(IEmoji emoji)
 {
     if (ReactionsById.ContainsKey(emoji.Identifier))
     {
         ReactionsById.Remove(emoji.Identifier);
     }
 }
Example #2
0
 void IUpdatableMessage.RemoveReaction(IEmoji emoji)
 {
     if (ReactionsById.TryGetValue(emoji.Identifier, out Reaction react))
     {
         if (react.DecrementCount() == 0)
         {
             ReactionsById.Remove(emoji.Identifier);
         }
     }
 }