示例#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);
        }