Represents a user on Discord.
The base 10 accent color of the user's banner The user must be force fetched for this property to be present or be updated
Whether or not the user is a bot
The time the user was created at
The timestamp the user was created at
A link to the user's default avatar
The discriminator of this user
'0', or a 4-digit stringified number if they're using the legacy username system
The global name of this user, or their username if they don't have one
The hexadecimal version of the user accent color, with a leading hash The user must be force fetched for this property to be present
The user's id
Whether the user is an Official Discord System user (part of the urgent message system)
The tag of this user This user's username, or their legacy tag (e.g.
hydrabolt#0001) if they're using the legacy username system
The username of the user
A link to the user's avatar decoration.
A link to the user's avatar.
A link to the user's banner. See banner for more info
Creates a DM channel between the client and the user.
Deletes a DM channel (if one exists) between the client and the user. Resolves with the channel if successful.
A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned.
Checks if the user is equal to another. It compares id, username, discriminator, avatar, banner, accent color, and bot flags. It is recommended to compare equality by using
user.id === user2.idunless you want to compare all properties.
Fetches this user.
Fetches this user's flags.
When concatenated with a string, this automatically returns the user's mention instead of the User object.