Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExtendedUser

Hierarchy

Index

Constructors

constructor

Properties

Optional accentColor

accentColor: null | number

avatar

avatar: null | string

avatarURL

avatarURL: string

Optional banner

banner: null | string

bannerURL

bannerURL: null | string

bot

bot: boolean

createdAt

createdAt: number

defaultAvatar

defaultAvatar: string

defaultAvatarURL

defaultAvatarURL: string

discriminator

discriminator: string

email

email: string

id

id: string

mention

mention: string

mfaEnabled

mfaEnabled: boolean

premiumType

premiumType: PremiumTypes

Optional publicFlags

publicFlags: number

staticAvatarURL

staticAvatarURL: string

system

system: boolean

username

username: string

verified

verified: boolean

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

dynamicBannerURL

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

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

    Returns null | string

editNote

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

    • note: string

    Returns Promise<void>

getDMChannel

getProfile

inspect

removeRelationship

  • removeRelationship(): Promise<void>

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

Static getCreatedAt

  • getCreatedAt(id: string): number
  • Parameters

    • id: string

    Returns number

Static getDiscordEpoch

  • getDiscordEpoch(id: string): number
  • Parameters

    • id: string

    Returns number

Generated using TypeDoc