Skip to main content

Class: Player

Represents a player from the room.

Hierarchy

Properties

client

client: Client

Inherited from

Base.client


name

name: string

The player's name.

Methods

friend

friend(): void

Add player to the friend list

Returns

void


unfriend

unfriend(): void

Remove player from the friend list

Returns

void


whisper

whisper(message): void

Send a whisper to the player

Parameters

NameType
messagestring

Returns

void