Class ClientUser

Hierarchy

Constructors

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
mfaEnabled: boolean
system: boolean
username: string
verified: boolean

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 null | string

  • Parameters

    Returns null | string

  • Parameters

    Returns undefined | null | string

  • Parameters

    • Optional force: boolean

    Returns Promise<DMChannel>

  • Parameters

    Returns string

  • Parameters

    Returns boolean

  • Parameters

    • Optional force: boolean

    Returns Promise<User>

  • Parameters

    • Optional afk: boolean
    • Optional shardId: number | readonly number[]

    Returns ClientPresence

  • Parameters

    • avatar: null | string | Buffer

    Returns Promise<ClientUser>

  • Parameters

    • banner: null | string | Buffer

    Returns Promise<ClientUser>

  • Parameters

    • username: string

    Returns Promise<ClientUser>

  • Parameters

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

    Returns unknown

  • Returns `<@${string}>`

  • Returns string

Generated using TypeDoc