Options
All
  • Public
  • Public/Protected
  • All
Menu

A discord user who has authorized your app to have access to their data.

Hierarchy

  • User

Index

Constructors

constructor

  • new User(__namedParameters: { avatar: any; bot: boolean; discriminator: any; email: any; flags: number; id: any; locale: any; mfa_enabled: any; premium_type: number; username: any; verified: any }): User
  • Parameters

    • __namedParameters: { avatar: any; bot: boolean; discriminator: any; email: any; flags: number; id: any; locale: any; mfa_enabled: any; premium_type: number; username: any; verified: any }
      • avatar: any
      • bot: boolean
      • discriminator: any
      • email: any
      • flags: number
      • id: any
      • locale: any
      • mfa_enabled: any
      • premium_type: number
      • username: any
      • verified: any

    Returns User

Properties

avatarHash

avatarHash: string

The user's avatar hash.

bot

bot: boolean

Whether the user is a discord bot.

discriminator

discriminator: number

The user's discriminator.

Readonly displayAvatarURL

displayAvatarURL: string

Get the URL of a user's display avatar.

emailId

emailId: string

The user's E-Mail ID.

emailVerified

emailVerified: boolean

Whether the user's E-Mail ID has been verified.

id

id: string

The user's unique discord ID.

isMFAEnabled

isMFAEnabled: boolean

Whether the user has enabled 2-factor authentication.

locale

locale: string

The user's locale.

premiumType

premiumType: string

The premium subscription type.

userFlags

userFlags: string[]

The user's profile's flags.

username

username: string

The user's discord username.

Accessors

createdAt

  • get createdAt(): Date

createdTimestamp

  • get createdTimestamp(): number
  • The timestamp of the creation of the user's account.

    Returns number

Methods

avatarURL

Private buildFlags

  • buildFlags(flags: number): void

Generated using TypeDoc