Preview environment

interface APIUserWithMember

extends

APIUser
external
export interface APIUserWithMember extends APIUser

optionalexternal
accent_color? : number | null

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

Inherited from: APIUser

optionalexternal
avatar_decoration_data? : APIAvatarDecorationData | null

The data for the user's avatar decoration

Inherited from: APIUser

See also: https://discord.com/developers/docs/resources/user#avatar-decoration-data-object

deprecatedoptionalexternal
avatar_decoration? : string | null

The user's avatar decoration hash

Inherited from: APIUser

See also: https://discord.com/developers/docs/reference#image-formatting

external
avatar : string | null

The user's avatar hash

Inherited from: APIUser

See also: https://discord.com/developers/docs/reference#image-formatting

The user's banner hash

Inherited from: APIUser

See also: https://discord.com/developers/docs/reference#image-formatting

optionalexternal
bot? : boolean

Whether the user belongs to an OAuth2 application

Inherited from: APIUser

optionalexternal
collectibles? : APICollectibles | null

The data for the user's collectibles

Inherited from: APIUser

See also: https://discord.com/developers/docs/resources/user#collectibles

external
discriminator : string

The user's Discord-tag

Inherited from: APIUser

optionalexternal
email? : string | null

The user's email

Inherited from: APIUser

optionalexternal
flags? : UserFlags

The flags on a user's account

Inherited from: APIUser

See also: 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

Inherited from: APIUser

external
id : Snowflake

The user's id

Inherited from: APIUser

optionalexternal
locale? : string

The user's chosen language option

Inherited from: APIUser

optionalexternal
member? : APIGuildMemberNoUser

The member field is only present in MESSAGE_CREATE and MESSAGE_UPDATE events from text-based guild channels

See also: https://discord.com/developers/docs/resources/guild#guild-member-object

optionalexternal
mfa_enabled? : boolean

Whether the user has two factor enabled on their account

Inherited from: APIUser

optionalexternal
premium_type? : UserPremiumType

The type of Nitro subscription on a user's account

Inherited from: APIUser

See also: https://discord.com/developers/docs/resources/user#user-object-premium-types

optionalexternal
primary_guild? : APIUserPrimaryGuild | null

The user's primary guild

Inherited from: APIUser

See also: https://discord.com/developers/docs/resources/user#user-object-user-primary-guild

optionalexternal
public_flags? : UserFlags

The public flags on a user's account

Inherited from: APIUser

See also: 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)

Inherited from: APIUser

external
username : string

The user's username, not unique across the platform

Inherited from: APIUser

optionalexternal
verified? : boolean

Whether the email on this account has been verified

Inherited from: APIUser