# User
Represents a user on FakeYou
# Constructor
new User(client, data);
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
client | Client | The client that instantiated this | No |
data | APIData | The category data | No |
# Properties
# badges
The badges for this user
# createdAt
The date the user was created
# createdTimestamp
The timestamp in seconds the user was created
# description
The user description (markdown style)
# displayName
The user display name
- Return: String
# gravatarHash
The Gravatar hash
- Return: String
# links
The social links this belongs to
- Return: LinksData
# partial
Checks if has partial data
- Return: Boolean
# token
The user token
- Return: UserToken
# ttsVisibility
The default TTS results visibility of the user
- Return: Visibility or null
# username
The username of the user
- Return: String
# w2lVisibility
The default W2L results visibility of the user
- Return: Visibility or null
# Methods
# fetch()
Get all data about this user
# gravatarURL()
Obtains the URL of gravatar image
- Return: String
# isVisible(isw2l)
Checks if the category is visible to public
PARAMETER | TYPE | DESCRIPTION | OPTIONAL |
---|---|---|---|
isw2l | Boolean | If you want to get w2l option | Yes |
# profileURL()
Obtains the URL of FakeYou profile
- Return: String