interface APIUser

external
export interface APIUser

https://discord.com/developers/docs/resources/user#user-object

optionalexternal
accent_color? : number | null

The user's banner color encoded as an integer representation of hexadecimal color code

optionalexternal
avatar_decoration_data? : APIAvatarDecorationData | null

The data for the user's avatar decorationSee https://discord.com/developers/docs/resources/user#avatar-decoration-data-object

deprecatedoptionalexternal
avatar_decoration? : string | null

The user's avatar decoration hashSee https://discord.com/developers/docs/reference#image-formatting

external
avatar : string | null

The user's avatar hashSee https://discord.com/developers/docs/reference#image-formatting

The user's banner hashSee https://discord.com/developers/docs/reference#image-formatting

optionalexternal
bot? : boolean

Whether the user belongs to an OAuth2 application

external
discriminator : string

The user's Discord-tag

optionalexternal
email? : string | null

The user's email

optionalexternal
flags? : UserFlags

The flags on a user's accountSee https://discord.com/developers/docs/resources/user#user-object-user-flags

external
global_name : string | null

The user's display name, if it is set. For bots, this is the application name

external
id : Snowflake

The user's id

optionalexternal
locale? : string

The user's chosen language option

optionalexternal
mfa_enabled? : boolean

Whether the user has two factor enabled on their account

optionalexternal
premium_type? : UserPremiumType

The type of Nitro subscription on a user's accountSee https://discord.com/developers/docs/resources/user#user-object-premium-types

optionalexternal
public_flags? : UserFlags

The public flags on a user's accountSee https://discord.com/developers/docs/resources/user#user-object-user-flags

optionalexternal
system? : boolean

Whether the user is an Official Discord System user (part of the urgent message system)

external
username : string

The user's username, not unique across the platform

optionalexternal
verified? : boolean

Whether the email on this account has been verified