User
@discordeno/bot • Docs
Documentation / @discordeno/bot / User
Interface: User
Properties
accentColor?
optional
accentColor:number
the user's banner color encoded as an integer representation of hexadecimal color code
Defined in
packages/bot/src/transformers/types.ts:1667
avatar?
optional
avatar:bigint
The user's avatar hash
Defined in
packages/bot/src/transformers/types.ts:1673
avatarDecorationData?
optional
avatarDecorationData:AvatarDecorationData
data for the user's avatar decoration
Defined in
packages/bot/src/transformers/types.ts:1679
banner?
optional
banner:bigint
the user's banner, or null if unset
Defined in
packages/bot/src/transformers/types.ts:1677
bot
bot:
boolean
Whether the user belongs to an OAuth2 application
Defined in
packages/bot/src/transformers/types.ts:1683
discriminator
discriminator:
string
The user's discord-tag
Defined in
packages/bot/src/transformers/types.ts:1671
email?
optional
email:string
The user's email
Defined in
packages/bot/src/transformers/types.ts:1675
flags?
optional
flags:ToggleBitfield
The flags on a user's account
Defined in
packages/bot/src/transformers/types.ts:1661
globalName?
optional
globalName:string
The user's display name, if it is set. For bots, this is the application name
Defined in
packages/bot/src/transformers/types.ts:1657
id
id:
bigint
The user's id
Defined in
packages/bot/src/transformers/types.ts:1669
locale?
optional
locale:string
The user's chosen language option
Defined in
packages/bot/src/transformers/types.ts:1659
mfaEnabled
mfaEnabled:
boolean
Whether the user has two factor enabled on their account
Defined in
packages/bot/src/transformers/types.ts:1687
premiumType?
optional
premiumType:PremiumTypes
The type of Nitro subscription on a user's account
Defined in
packages/bot/src/transformers/types.ts:1663
publicFlags?
optional
publicFlags:ToggleBitfield
The public flags on a user's account
Defined in
packages/bot/src/transformers/types.ts:1665
system
system:
boolean
Whether the user is an Official Discord System user (part of the urgent message system)
Defined in
packages/bot/src/transformers/types.ts:1685
tag
tag:
string
The user tag in the form of username#discriminator
Defined in
packages/bot/src/transformers/types.ts:1681
toggles?
optional
toggles:UserToggles
Compressed version of all the booleans on a user.
Defined in
packages/bot/src/transformers/types.ts:1653
username
username:
string
The user's username, not unique across the platform
Defined in
packages/bot/src/transformers/types.ts:1655
verified
verified:
boolean
Whether the email on this account has been verified