Base
↳ User
client
, data
): User
Constructor function.
Name | Type | Description |
---|---|---|
client | YorClient | - |
data | APIUser | The data for the APIUser. |
User
Private
API: UsersAPI
Private
CDN: CDN
YorClient
APIUser
Promise
<APIChannel
>
Creates a direct message channel.
Promise
<APIChannel
>
A promise that resolves to the created direct message channel.
Date
Retrieves the creation date of the object.
Date
The creation date of the object.
number
Calculates the timestamp when this object was created.
number
The timestamp in milliseconds.
string
The global name of this user, or their username if they don’t have one
string
The global name of this user
options?
): undefined
| string
Retrieves the URL of the avatar decoration based on the provided options.
Name | Type | Description |
---|---|---|
options? | Readonly <BaseImageURLOptions > | The options for the avatar decoration. |
undefined
| string
The URL of the avatar decoration, or undefined if it is not available.
options?
): undefined
| string
Generates the avatar URL for the user.
Name | Type | Description |
---|---|---|
options? | Readonly <ImageURLOptions > | The options for generating the avatar URL. |
undefined
| string
The generated avatar URL.
options?
): undefined
| string
Retrieves the URL for the banner image.
Name | Type | Description |
---|---|---|
options? | Readonly <ImageURLOptions > | description of the options parameter |
undefined
| string
the URL for the banner image
boolean
Checks if the user is a bot.
boolean
Whether the user is a bot.
boolean
Checks if the user is a system user.
boolean
Whether the user is a system user.