Skip to main content

IsUserBlocked

public void IsUserBlocked(string NickName);

Parameter

ValueTypeDescription
NickNamestringNickname of the user to be looked up

Description

You can look up whether the user with the corresponding nickname exists in the block list.

This method is provided only in a synchronous form.

Example

string isUnblock = Backend.Chat.IsUserBlocked("Nickname");

if(isUnblock)
Debug.Log("The user is blocked.");
else
Debug.Log("The user does not exist in the block list.");

Return casess

returnValue(bool)Description
trueWhen the user is in the block list
falseWhen the user is not in the block list