Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • User

Index

Constructors

constructor

Properties

_id

_id: string

avatar

avatar: Nullable<Attachment>

badges

badges: Nullable<number>

bot

bot: Nullable<BotInformation>

client

client: Client

flags

flags: Nullable<number>

online

online: Nullable<boolean>

relationship

relationship: Nullable<RelationshipStatus>

status

status: Nullable<Status>

username

username: string

Accessors

createdAt

  • get createdAt(): number

defaultAvatarURL

  • get defaultAvatarURL(): string

permission

  • get permission(): number

Methods

addFriend

  • addFriend(): Promise<void>

blockUser

  • blockUser(): Promise<void>

fetchMutual

  • fetchMutual(): Promise<{ servers: string[]; users: string[] }>
  • Fetch the mutual connections of the current user and a target user

    Returns Promise<{ servers: string[]; users: string[] }>

    The mutual connections of the current user and a target user

fetchProfile

  • fetchProfile(): Promise<Profile>
  • Fetch the profile of a user

    Returns Promise<Profile>

    The profile of the user

generateAvatarURL

  • generateAvatarURL(...args: FileArgs): string

openDM

removeFriend

  • removeFriend(): Promise<void>

unblockUser

  • unblockUser(): Promise<void>

update

Generated using TypeDoc