Skip to main content

user.info

Generated from spec/protocol.yaml. Do not edit by hand.

Overview

  • ID: 2725
  • Header: USER_INFO
  • Direction: Server to Client (s2c)
  • Realm: User & Profile
  • Phase: session
  • Since: nitro-1.6.6
  • Summary: Deliver the authenticated user's own identity and preference data

Payload fields

FieldTypeRequiredDescription
userIdint32requiredNumeric user ID
usernamestringrequiredDisplay name
figurestringrequiredNitro figure code string
genderstringrequiredGender: M or F
mottostringrequiredUser's personal motto text
realNamestringrequiredReal name if the account exposes it, otherwise empty string
directMailbooleanrequiredWhether the user has consented to direct-mail communications
respectsReceivedint32requiredTotal respect points this user has received
respectsRemainingint32requiredRespect points the user may still give to other users today
respectsPetRemainingint32requiredRespect points the user may still give to pets today
streamPublishingAllowedbooleanrequiredWhether the user is permitted to publish a room stream
lastAccessDatestringrequiredISO-style timestamp of the user's last login
canChangeNamebooleanrequiredWhether the user is eligible to change their display name
safetyLockedbooleanrequiredWhether the account is under safety-lock (parental control)

Behavior

Sender

Sent by the server in response to user.get_info (c2s 357) immediately after the authentication burst. It carries the full identity record of the currently authenticated user: display name, figure, gender, motto, real name (if exposed), direct-mail consent, respect counters, stream publishing permission, last-access date, name-change eligibility, and safety-lock status.

Receiver

The client stores all fields in the session state. The respect counters (respectsRemaining, respectsPetRemaining) govern how many respect actions the user may perform today. canChangeName controls visibility of the name-change flow. safetyLocked restricts certain actions for accounts under parental control.

Notes

  • No additional notes