Is it possible to get user bans, similar to how I'm grabbing the username using InfoRequestParameters
?
var request = new LoginWithEmailAddressRequest
{
Email = PlayerPrefs.GetString("savedPlayFabLogin", ""),
Password = PlayerPrefs.GetString("savedPlayFabPassword", ""),
InfoRequestParameters = new GetPlayerCombinedInfoRequestParams
{
GetPlayerProfile = true
}
};
// * Sends a log in request to PlayFab
PlayFabClientAPI.LoginWithEmailAddress(request, result => {
instance.playerUsername = result.InfoResultPayload.PlayerProfile.DisplayName;
}, error => {
// handles error stuff
});
Documentation for InfoRequestParameters
: https://learn.microsoft.com/en-us/rest/api/playfab/client/authentication/login-with-playfab?view=playfab-rest#request-body
Documentation for UserTitleInfo
and isBanned
: https://learn.microsoft.com/en-us/rest/api/playfab/client/authentication/login-with-playfab?view=playfab-rest#usertitleinfo
I'm just confused what the syntax is for grabbing UserTitleInfo and then inside that checking "isBanned"