public ReactionEvent Build() { ReactionEvent reactionEvent = new ReactionEvent(); reactionEvent.Emote = this.emote; reactionEvent.ReactionAdded += this.reactionAdded; return(reactionEvent); }
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); }