Options
All
  • Public
  • Public/Protected
  • All
Menu

Class User

Hierarchy

Index

Constructors

constructor

Properties

avatar

avatar: null | string

avatarURL

avatarURL: string

bot

bot: boolean

createdAt

createdAt: number

defaultAvatar

defaultAvatar: string

defaultAvatarURL

defaultAvatarURL: string

discriminator

discriminator: string

id

id: string

mention

mention: string

Optional publicFlags

publicFlags: undefined | number

staticAvatarURL

staticAvatarURL: string

system

system: boolean

username

username: string

Methods

addRelationship

  • addRelationship(block?: boolean): Promise<void>
  • Parameters

    • Optional block: boolean

    Returns Promise<void>

deleteNote

  • deleteNote(): Promise<void>
  • Returns Promise<void>

dynamicAvatarURL

  • dynamicAvatarURL(format?: "jpg" | "jpeg" | "png" | "webp" | "gif", size?: number): string
  • Parameters

    • Optional format: "jpg" | "jpeg" | "png" | "webp" | "gif"
    • Optional size: number

    Returns string

editNote

  • editNote(note: string): Promise<void>
  • Parameters

    • note: string

    Returns Promise<void>

getDMChannel

  • Returns Promise<PrivateChannel>

getProfile

  • Returns Promise<UserProfile>

inspect

  • Returns User

removeRelationship

  • removeRelationship(): Promise<void>
  • Returns Promise<void>

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

Generated using TypeDoc