Constructor: updateUserName

Back to constructors index

Changes the user’s first name, last name and username.

Attributes:

Name Type Required Description
user_id int Yes User identifier
first_name string Yes New first name. Corresponds to the new value of real_first_name field of the userFull constructor.
last_name string Yes New last name. Corresponds to the new value of real_last_name field of the userFull constructor.
username string Yes New username.
Parameter added in Layer 18.

Type: Update

Example:

$updateUserName = ['_' => 'updateUserName', 'user_id' => int, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string'];

Or, if you’re into Lua:

updateUserName={_='updateUserName', user_id=int, first_name='string', last_name='string', username='string'}

This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.