コード例 #1
0
        private void _pubSubClient_OnMessageDeleted(object sender, OnMessageDeletedArgs e)
        {
            var pubEvent = new TwitchPublishEvent(PublishEventType.MessageDeleted)
            {
                Message  = e.Message,
                Username = e.TargetUser
            };

            OnPublishEvent?.Invoke(pubEvent);
        }
コード例 #2
0
        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);
        }