Class User

Hierarchy

Constructors

  • Parameters

    • client: Client<true>
    • data: RawUserData

    Returns User

Properties

accentColor: undefined | null | number
avatar: null | string
avatarDecoration: null | string

Deprecated

Use avatarDecorationData instead

avatarDecorationData: null | AvatarDecorationData
banner: undefined | null | string
bot: boolean
client: Client<true>
discriminator: string
flags: null | Readonly<UserFlagsBitField>
globalName: null | string
id: string
system: boolean
username: string

Accessors

  • get createdAt(): Date
  • Returns Date

  • get createdTimestamp(): number
  • Returns number

  • get defaultAvatarURL(): string
  • Returns string

  • get displayName(): string
  • Returns string

  • get dmChannel(): null | DMChannel
  • Returns null | DMChannel

  • get hexAccentColor(): undefined | null | `#${string}`
  • Returns undefined | null | `#${string}`

  • get partial(): false
  • Returns false

  • get tag(): string
  • Returns string

Methods

  • Parameters

    Returns boolean

  • Parameters

    Returns null | string

  • Parameters

    Returns null | string

  • Parameters

    Returns undefined | null | string

  • Parameters

    • Optional force: boolean

    Returns Promise<DMChannel>

  • Returns Promise<DMChannel>

  • Parameters

    Returns string

  • Parameters

    Returns boolean

  • Parameters

    • Optional force: boolean

    Returns Promise<User>

  • Parameters

    • Optional force: boolean

    Returns Promise<UserFlagsBitField>

  • Parameters

    • Rest ...props: Record<string, string | boolean>[]

    Returns unknown

  • Returns `<@${string}>`

  • Returns string

Generated using TypeDoc