Options
All
  • Public
  • Public/Protected
  • All
Menu

Represent a Discord User

Hierarchy

Index

Constructors

Properties

avatar: null | string

The hash of the user's avatar, it will be prepended with "a_" if the avatar is animated

bio: Bio

The bio instance that instantiated this

discriminator: string

This discriminator of the user

id: string

The id of the user

premiumType: null | 0 | 1 | 2

The type of nitro the user has.

  • null = not revealed by the API
  • 0 = nothing
  • 1 = nitro classic
  • 2 = the nitro with boosts
publicFlags: UserFlags

The flags on the user

username: string

The username of the user

Accessors

  • get defaultAvatarURL(): string
  • get tag(): string

Methods

  • avatarURL(options?: ImageURLOptions & { dynamic?: boolean }): null | string
  • displayAvatarURL(options?: ImageURLOptions & { dynamic?: boolean }): string
  • The link to the user's avatar if they have one,or to there defualt one if they don't have an avatar.

    warn

    Notice: Default avatar has a fixed size and is always a .png image

    Parameters

    • Optional options: ImageURLOptions & { dynamic?: boolean }

      Options for the image

    Returns string

Generated using TypeDoc