UserPayload
UserPayload
Section titled “UserPayload”A class representing a user payload.
UserPayload.create(payload) ⇒ Object
Section titled “UserPayload.create(payload) ⇒ Object”Creates a user object based on the given payload.
Kind: static method of UserPayload
Returns: Object - - The created user object.
| Param | Type | Description |
|---|---|---|
| payload | Object | The payload object containing user information. |
| payload.username | string | The username of the user. |
| payload.bio | string | The bio of the user. |
| payload.avatar | string | The avatar image of the user. |
| payload.avatarDecorations | string | The avatar decorations image of the user. |