private void _pubSubClient_OnMessageDeleted(object sender, OnMessageDeletedArgs e) { var pubEvent = new TwitchPublishEvent(PublishEventType.MessageDeleted) { Message = e.Message, Username = e.TargetUser }; OnPublishEvent?.Invoke(pubEvent); }
private void _pubSubClient_OnFollow(object sender, OnFollowArgs e) { var pubEvent = new TwitchPublishEvent(PublishEventType.NewFollow) { FollowedChannelId = e.FollowedChannelId, DisplayName = e.DisplayName, Username = e.Username, UserId = e.UserId }; OnPublishEvent?.Invoke(pubEvent); }