Skip to main content
Version: 6.0.0

ChangeDisplayName

public BackndReturnObject ChangeDisplayName(string nickname);

Parameter

ValueTypeDescription
nicknamestringValue of nickname. Up to 20 characters. Blanks cannot be added before or after the nickname.

Description

This function is used to modify nicknames.

If a user without a nickname calls the nickname modification method, nickname creation is performed.

Example

Synchronous

Backnd.Player.ChangeDisplayName("thebackend");

Asynchronous

Backnd.Player.ChangeDisplayName("thebackend", (callback) =>
{
// Post-process
});

Return cases

Success cases

When the creation/modification is successful
statusCode : 204

Error cases

When the user tries to create/modify a nickname using an empty nickname or string.empty
statusCode : 400
errorCode : UndefinedParameterException

When the nickname exceeds 20 characters
statusCode : 400
errorCode : BadParameterException

When there is a blank before/after the nickname
statusCode : 400
errorCode : BadParameterException

When there is a duplicated nickname
statusCode : 409
errorCode : DuplicatedParameterException