Represents the logged in client's Discord user.
The base 10 accent color of the user's banner The user must be force fetched for this property to be present or be updatedInherited from User
The discriminator of this userInherited from 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 oneInherited from User
The hexadecimal version of the user accent color, with a leading hash The user must be force fetched for this property to be presentInherited from User
If the bot's has MFA enabled on their account
Whether this User is a partialInherited from User
Represents the client user's presence
Whether the user is an Official Discord System user (part of the urgent message system)Inherited from User
The tag of this user This user's username, or their legacy tag (e.g.Inherited from User
hydrabolt#0001) if they're using the legacy username system
Whether or not this account has been verified
A link to the user's avatar decoration.Inherited from User
A link to the user's avatar.Inherited from User
A link to the user's banner. See banner for more infoInherited from User
Creates a DM channel between the client and the user.Inherited from User
Deletes a DM channel (if one exists) between the client and the user. Resolves with the channel if successful.Inherited from User
A link to the user's avatar if they have one. Otherwise a link to their default avatar will be returned.Inherited from User
Edits the logged in client.
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 usingInherited from User
user.id === user2.idunless you want to compare all properties.
Fetches this user.Inherited from User
Fetches this user's flags.Inherited from User
Sets the activity the client user is playing.
Sets/removes the AFK flag for the client user.
Sets the avatar of the logged in client.
Sets the full presence of the client user.
Sets the status of the client user.
Sets the username of the logged in client. Changing usernames in Discord is heavily rate limited, with only 2 requests every hour. Use this sparingly!
When concatenated with a string, this automatically returns the user's mention instead of the User object.Inherited from User