/// <summary> /// Initializes a new instance of the UserLeaveEventArgs class. /// </summary> /// <param name="user">The user, that have left the channel.</param> /// <param name="msg">The last message belonging to the leaving reason.</param> /// <param name="reason">The reason why the user have left.</param> public UserLeaveEventArgs(ChannelUser user, string msg, UserLeaveReason reason) : base(user.Client) { this.user = user; this.reason = reason; this.msg = msg; }
/// <summary> /// Initializes a new instance of the UserJoinEventArgs class. /// </summary> /// <param name="user">The user that joined.</param> /// <param name="baseArgs">The event args for the base join event.</param> public UserJoinEventArgs(ChannelUser user, JoinReceivedEventArgs baseArgs) : base(baseArgs.Line) { this.user = user; }