The client
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
The new info to edit the client
client.edit({
username: "DBDTeamJS",
avatar: `https://cdn.discordapp.com/icons/759558437088264202/a_a54e72d76462c99427db0287b7312d02.png`
}).then((result) => {
if(result.error){console.log(result)}
console.log(`Changed avatar + username successfully!`)
})
The new username of the Client
const link = `https://cdn.discordapp.com/icons/759558437088264202/a_a54e72d76462c99427db0287b7312d02.png`
client.editAvatar(link).then((result) => {
if(result.error){console.log(result)}
console.log(`Changed avatar successfully!`)
})
The new username of the Client
client.editUsername(`DBDTeamJS`).then((result) => {
if(result.error){console.log(result)}
console.log(`Changed username successfully!`)
})
Generated using TypeDoc
The data payload