Skip to main content
Version: 0.37.35

APIUser

Index

Properties

optionalaccent_color

accent_color?: null | number

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

avatar

avatar: null | string

optionalbanner

banner?: null | string

optionalbot

bot?: boolean

Whether the user belongs to an OAuth2 application

discriminator

discriminator: string

The user’s 4-digit discord-tag

optionalemail

email?: null | string

The user’s email

optionalflags

flags?: UserFlags

id

id: string

The user’s id

optionallocale

locale?: string

The user’s chosen language option

optionalmfa_enabled

mfa_enabled?: boolean

Whether the user has two factor enabled on their account

optionalpremium_type

premium_type?: UserPremiumType

The type of Nitro subscription on a user’s account

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

optionalverified

verified?: boolean

Whether the email on this account has been verified