Skip to main content

ClientUser

Hierarchy

Index

Constructors

constructor

Properties

publicaccentColor

accentColor: null | number

The accent color of this user encoded as an integer representation of hexadecimal color code

publicavatar

avatar: null | string

publicbanner

banner: null | string

publicbot

bot: boolean

Whether this user belongs to an OAuth2 application

publicclient

client: Client<boolean>

The client that initialized this user

publicdiscriminator

discriminator: string

The discriminator of this user (if any)

publicflags

flags: any

publicglobalName

globalName: undefined | string

The global name/display name of this user

publicid

id: string

The ID of this user

publicpublicFlags

publicFlags: any

publicsystem

system: boolean

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

publicusername

username: string

The username of this user

Accessors

publicdisplayName

  • get displayName(): string
  • The global name of this user, or their username if they don’t have one

publictag

  • get tag(): null | string
  • This user’s username, or their legacy tag (e.g. hydrabolt#0001) if they’re using the legacy username system

Methods

publicbannerURL

  • bannerURL(options?: any): null | string
  • The banner URL of this user

publicdisplayAvatarURL

  • displayAvatarURL(options?: any): string
  • The avatar URL of this user