User
Documentation / @discordeno/bot / User
Interface: User
Defined in: bot/src/transformers/types.ts:1758
Properties
accentColor?
optionalaccentColor:number
Defined in: bot/src/transformers/types.ts:1778
the user's banner color encoded as an integer representation of hexadecimal color code
avatar?
optionalavatar:bigint
Defined in: bot/src/transformers/types.ts:1784
The user's avatar hash
avatarDecorationData?
optionalavatarDecorationData:AvatarDecorationData
Defined in: bot/src/transformers/types.ts:1790
data for the user's avatar decoration
avatarUrl()
avatarUrl: (
options?) =>string|undefined
Defined in: bot/src/transformers/types.ts:1812
Get user's avatar in formatted url
Parameters
options?
Image format options
Returns
string | undefined
User's avatar in formatted url
banner?
optionalbanner:bigint
Defined in: bot/src/transformers/types.ts:1788
the user's banner, or null if unset
bot
bot:
boolean
Defined in: bot/src/transformers/types.ts:1794
Whether the user belongs to an OAuth2 application
collectibles?
optionalcollectibles:Collectibles
Defined in: bot/src/transformers/types.ts:1802
data for the user's collectibles
createdTimestamp
createdTimestamp:
number
Defined in: bot/src/transformers/types.ts:1768
Get the timestamp in milliseconds of user's creation date
defaultAvatarUrl
defaultAvatarUrl:
string
Defined in: bot/src/transformers/types.ts:1806
Get user's default avatar in formatted url
discriminator
discriminator:
string
Defined in: bot/src/transformers/types.ts:1782
The user's discord-tag
displayAvatarUrl()
displayAvatarUrl: (
options?) =>string
Defined in: bot/src/transformers/types.ts:1818
Get user's display avatar in formatted url
Parameters
options?
Image format options
Returns
string
User's display avatar in formatted url
displayName
displayName:
string
Defined in: bot/src/transformers/types.ts:1766
The user's display name based on globalName and username
email?
optionalemail:string
Defined in: bot/src/transformers/types.ts:1786
The user's email
flags?
optionalflags:ToggleBitfield
Defined in: bot/src/transformers/types.ts:1772
The flags on a user's account
globalName?
optionalglobalName:string
Defined in: bot/src/transformers/types.ts:1764
The user's display name, if it is set. For bots, this is the application name
id
id:
bigint
Defined in: bot/src/transformers/types.ts:1780
The user's id
locale?
optionallocale:string
Defined in: bot/src/transformers/types.ts:1770
The user's chosen language option
mfaEnabled
mfaEnabled:
boolean
Defined in: bot/src/transformers/types.ts:1798
Whether the user has two factor enabled on their account
premiumType?
optionalpremiumType:PremiumTypes
Defined in: bot/src/transformers/types.ts:1774
The type of Nitro subscription on a user's account
primaryGuild?
optionalprimaryGuild:UserPrimaryGuild
Defined in: bot/src/transformers/types.ts:1804
The user's primary guild
publicFlags?
optionalpublicFlags:ToggleBitfield
Defined in: bot/src/transformers/types.ts:1776
The public flags on a user's account
system
system:
boolean
Defined in: bot/src/transformers/types.ts:1796
Whether the user is an Official Discord System user (part of the urgent message system)
tag
tag:
string
Defined in: bot/src/transformers/types.ts:1792
The user tag in the form of username or username#discriminator for legacy username system
toggles?
optionaltoggles:UserToggles
Defined in: bot/src/transformers/types.ts:1760
Compressed version of all the booleans on a user.
username
username:
string
Defined in: bot/src/transformers/types.ts:1762
The user's username, not unique across the platform
verified
verified:
boolean
Defined in: bot/src/transformers/types.ts:1800
Whether the email on this account has been verified