Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Friend

Represents a friend of an user.

Hierarchy

Index

Constructors

constructor

  • new Friend(client: any, data: any): Friend
  • Creates a friend with the json response from API call.

    internal

    Parameters

    • client: any

      the client that instancied this class

    • data: any

      the json response from API call

    Returns Friend

Properties

avatar

avatar: Avatar

The user's avatar.

remarks

Must be fetched with fetchAvatar.

Readonly client

client: Client

Readonly createdAt

createdAt: Date

description

description: string

displayName

displayName: string

Readonly id

id: number

isBanned

isBanned: boolean

Readonly name

name: string

Methods

remove

  • remove(): Promise<void>

send

  • send(message: string): Promise<void>

Generated using TypeDoc