예제 #1
0
        public ReactionEvent Build()
        {
            ReactionEvent reactionEvent = new ReactionEvent();

            reactionEvent.Emote          = this.emote;
            reactionEvent.ReactionAdded += this.reactionAdded;

            return(reactionEvent);
        }
예제 #2
0
        public ReactionEvent Build()
        {
            ReactionEvent reactionEvent = new ReactionEvent();

            reactionEvent.Emote = this.emote;

            if (reactionAdded != null)
            {
                reactionEvent.ReactionAdded += this.reactionAdded;
            }
            if (reactionRemoved != null)
            {
                reactionEvent.ReactionRemoved += this.reactionRemoved;
            }

            return(reactionEvent);
        }