Skip to content

Structure

See

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

Properties

id

id: string

Defined in

typings/user.ts:8


username

username: string

Defined in

typings/user.ts:9


discriminator

discriminator: string

Defined in

typings/user.ts:10


global_name

global_name: null | string

Defined in

typings/user.ts:11


avatar

avatar: null | string

Defined in

typings/user.ts:12


bot?

optional bot: boolean

Defined in

typings/user.ts:13


system?

optional system: boolean

Defined in

typings/user.ts:14


mfa_enabled?

optional mfa_enabled: boolean

Defined in

typings/user.ts:15


optional banner: null | string

Defined in

typings/user.ts:16


accent_color?

optional accent_color: null | number

Defined in

typings/user.ts:17


locale?

optional locale: Locale

Defined in

typings/user.ts:18


verified?

optional verified: boolean

Defined in

typings/user.ts:19


email?

optional email: null | string

Defined in

typings/user.ts:20


flags?

optional flags: number

Bitfield of UserFlags

Defined in

typings/user.ts:24


premium_type?

optional premium_type: PremiumType

Defined in

typings/user.ts:25


public_flags?

optional public_flags: number

Bitfield of UserFlags

Defined in

typings/user.ts:29


avatar_decoration?

optional avatar_decoration: null | string

Defined in

typings/user.ts:30