Optional
accentThe User accentColor
Optional
avatarThe User avatar hash
Optional
avatarThe User avatar decoration hash
Optional
bannerThe User banner hash
If the user is a bot
Readonly
clientOptional
discriminatorThe User discriminator (if has)
Readonly
displayDisplay's the User avatar URL.
Display's the User banner URL.
Display's the User default avatar URL.
The user flags
The User global name
The User ID
If the user is the system
The User name
If the User is a partial
Returns the User avatar URL
Optional
opts: CDNOptionsThe CDN Options
const user = client.users.cache.get("738824089128665118")
user.avatarUrl({
size: 64,
format: "jpg"
})// https://cdn.discordapp.com//avatars/738824089128665118/f67c14413c916648f2fb50be239adf5f.jpg?size=64
Returns the User banner URL
The CDN Options
const user = client.users.cache.get("640685917467705344")
user.bannerUrl() // https://cdn.discordapp.com/banners/640685917467705344/0510a7bd372082644a05c92ffbbe7b2b.webp
Generated using TypeDoc
Represents a User