UserHeader
public struct UserHeader : Content
Used to obtain a user’s current header information (name and image) for attributed content.
Returned by:
GET /api/v3/users/ID/header
GET /api/v3/client/user/headers/since/DATE
See UsersController.headerHandler(_:)
, ClientController.userHeadersHandler(_:)
.
-
The user’s ID.
Declaration
Swift
var userID: UUID
-
The user’s username.
Declaration
Swift
var username: String
-
The user’s displayName.
Declaration
Swift
var displayName: String?
-
The user’s avatar image.
Declaration
Swift
var userImage: String?
-
An optional preferred pronoun or form of address.
Declaration
Swift
var preferredPronoun: String?
-
Declaration
Swift
init(user: User) throws
-
Declaration
Swift
static var Blocked: UserHeader { get }