Skip to main content

APIUser

Index

Properties

accent_color

accent_color: null | number

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

avatar

avatar: string

optionalavatar_decoration

avatar_decoration?: string

banner

banner: null | string

optionalbot

bot?: boolean

Whether the user belongs to an OAuth2 application

discriminator

discriminator: string

The user’s Discord-tag

optionalflags

flags?: UserFlags

optionalglobal_name

global_name?: string

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

id

id: string

The user’s ID

optionallocale

locale?: string

The user’s chosen language option

@see

optionalmfa_enabled

mfa_enabled?: boolean

Whether the user has two factor enabled on their account

premium_type

premium_type: UserPremiumType

The type of Nitro subscription on a user’s account

@see

optionalpublic_flags

public_flags?: UserFlags

optionalsystem

system?: boolean

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

username

username: string

The user’s username, not unique across the platform