interface APIUserWithMember {
    accent_color?: null | number;
    avatar: null | string;
    avatar_decoration?: null | string;
    avatar_decoration_data?: null | APIAvatarDecorationData;
    banner?: null | string;
    bot?: boolean;
    collectibles?: null | APICollectibles;
    discriminator: string;
    email?: null | string;
    flags?: UserFlags;
    global_name: null | string;
    id: string;
    locale?: string;
    member?: APIGuildMemberNoUser;
    mfa_enabled?: boolean;
    premium_type?: UserPremiumType;
    primary_guild?: null | APIUserPrimaryGuild;
    public_flags?: UserFlags;
    system?: boolean;
    username: string;
    verified?: boolean;
}

Hierarchy (View Summary)

Properties

accent_color?: null | number

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

avatar: null | string

The user's avatar hash

avatar_decoration?: null | string

The user's avatar decoration hash

avatar_decoration_data?: null | APIAvatarDecorationData

The data for the user's avatar decoration

banner?: null | string

The user's banner hash

bot?: boolean

Whether the user belongs to an OAuth2 application

collectibles?: null | APICollectibles

The data for the user's collectibles

discriminator: string

The user's Discord-tag

email?: null | string

The user's email

flags?: UserFlags

The flags on a user's account

global_name: null | string

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

id: string

The user's id

locale?: string

The user's chosen language option

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

mfa_enabled?: boolean

Whether the user has two factor enabled on their account

premium_type?: UserPremiumType

The type of Nitro subscription on a user's account

primary_guild?: null | APIUserPrimaryGuild

The user's primary guild

public_flags?: UserFlags

The public flags on a user's account

system?: boolean

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

username: string

The user's username, not unique across the platform

verified?: boolean

Whether the email on this account has been verified