Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a account user.

Hierarchy

  • User

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private api

channels

channels: Channel[]

The channels this user has joined.

name

name: string

The name of the user.

Methods

getChannelByName

  • getChannelByName(name: string): Channel
  • Returns the user channel from the given name.

    Parameters

    • name: string

      The channel name.

    Returns Channel

send

  • send(user: string, msg: string): Promise<void>
  • Send a message to another user.

    Parameters

    • user: string

      The user to send the message to.

    • msg: string

      The content of the message.

    Returns Promise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc