API v9InterfacesRESTPatchAPICurrentUserJSONBodyVersion: 0.37.37On this pageRESTPatchAPICurrentUserJSONBody https://discord.com/developers/docs/resources/user#modify-current-userIndex PropertiesavatarusernameProperties optionalavataravatar?: null | stringIf passed, modifies the user’s avataroptionalusernameusername?: stringUser’s username, if changed may cause the user’s discriminator to be randomized
https://discord.com/developers/docs/resources/user#modify-current-user