Optional
accentThe user's banner color. If this member was received via the gateway, this will never be present.
The user's avatar hash.
Optional
avatarThe hash of this user's avatar decoration. This will always resolve to a png.
Optional
bannerThe user's banner hash. If this member was received via the gateway, this will never be present.
If this user is a bot.
The 4 digits after the user's username.
The user's public flags.
If this user is an official discord system user.
The user's username.
The default avatar value of this user (discriminator modulo 5).
A string that will mention this user.
a combination of this user's username and discriminator.
The url of this user's avatar decoration. This will always be a png. Discord does not combine the decoration and their current avatar for you. This is ONLY the decoration.
As of 12/8/2022 (Dec 8) avatar_decoration
is only visible to bots if they set an X-Super-Properties
header with a client_build_number
~162992. You can do this via the rest.superProperties option.
Optional
size: numberThe dimensions of the image.
The url of this user's avatar (or default avatar, if they have not set an avatar).
Optional
format: "jpg" | "jpeg" | "png" | "webp" | "gif"The format the url should be.
Optional
size: numberThe dimensions of the image.
Create a direct message with this user.
Static
getStatic
get
Represents a user.