social / pragma.account / AccountService / updateDisplayNameV1 /

updateDisplayNameV1 #

@ExperimentalCoroutinesApi

suspend fun updateDisplayNameV1(playerSession: PlayerSession, request: AccountRpc.UpdateDisplayNameV1Request): AccountRpc.UpdateDisplayNameV1Response

Updates a user’s display name By default player display name updates are disabled in the DefaultAccountPlugin. Implement your own plugin to enable player display name updates AccountService.updateDisplayNameV1.

Plugins

  • AccountPlugin.updateDisplayName - Called whenever a user updates their email. Can be used to customize display name update behavior

PragmaResultErrors

  • PragmaError.AccountService_DisplayNameUpdateNotAllowed when the AccountPlugin prevents a display name update.
  • PragmaError.AccountService_BadRequest When no display name is provided.
  • PragmaError.Database_Error when failing to update the display name in the db.