User
Documentation / @discordeno/bot / User
Interface: User
Defined in: transformers/types.ts:1818
Properties
accentColor?
optionalaccentColor:number
Defined in: transformers/types.ts:1838
the user's banner color encoded as an integer representation of hexadecimal color code
avatar?
optionalavatar:bigint
Defined in: transformers/types.ts:1844
The user's avatar hash
avatarDecorationData?
optionalavatarDecorationData:AvatarDecorationData
Defined in: transformers/types.ts:1850
data for the user's avatar decoration
avatarUrl()
avatarUrl: (
options?) =>string|undefined
Defined in: transformers/types.ts:1872
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: transformers/types.ts:1848
the user's banner, or null if unset
bot
bot:
boolean
Defined in: transformers/types.ts:1854
Whether the user belongs to an OAuth2 application
collectibles?
optionalcollectibles:Collectibles
Defined in: transformers/types.ts:1862
data for the user's collectibles
createdTimestamp
createdTimestamp:
number
Defined in: transformers/types.ts:1828
Get the timestamp in milliseconds of user's creation date
defaultAvatarUrl
defaultAvatarUrl:
string
Defined in: transformers/types.ts:1866
Get user's default avatar in formatted url
discriminator
discriminator:
string
Defined in: transformers/types.ts:1842
The user's discord-tag
displayAvatarUrl()
displayAvatarUrl: (
options?) =>string
Defined in: transformers/types.ts:1878
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: transformers/types.ts:1826
The user's display name based on globalName and username
email?
optionalemail:string
Defined in: transformers/types.ts:1846
The user's email
flags?
optionalflags:ToggleBitfield
Defined in: transformers/types.ts:1832
The flags on a user's account
globalName?
optionalglobalName:string
Defined in: transformers/types.ts:1824
The user's display name, if it is set. For bots, this is the application name
id
id:
bigint
Defined in: transformers/types.ts:1840
The user's id
locale?
optionallocale:string
Defined in: transformers/types.ts:1830
The user's chosen language option
mfaEnabled
mfaEnabled:
boolean
Defined in: transformers/types.ts:1858
Whether the user has two factor enabled on their account
premiumType?
optionalpremiumType:PremiumTypes
Defined in: transformers/types.ts:1834
The type of Nitro subscription on a user's account
primaryGuild?
optionalprimaryGuild:UserPrimaryGuild
Defined in: transformers/types.ts:1864
The user's primary guild
publicFlags?
optionalpublicFlags:ToggleBitfield
Defined in: transformers/types.ts:1836
The public flags on a user's account
system
system:
boolean
Defined in: transformers/types.ts:1856
Whether the user is an Official Discord System user (part of the urgent message system)
tag
tag:
string
Defined in: transformers/types.ts:1852
The user tag in the form of username or username#discriminator for legacy username system
toggles?
optionaltoggles:UserToggles
Defined in: transformers/types.ts:1820
Compressed version of all the booleans on a user.
username
username:
string
Defined in: transformers/types.ts:1822
The user's username, not unique across the platform
verified
verified:
boolean
Defined in: transformers/types.ts:1860
Whether the email on this account has been verified