IEnumerable <User> UpdateUserData(params string[] userids) { GetUserResponse userresponse = twitchapi.GetUsersByID(userids); foreach (NightlyCode.Twitch.Api.User user in userresponse.Data) { yield return(context.GetModule <UserModule>().AddOrUpdateUser(TwitchConstants.ServiceKey, user.Login, user.ID)); } }