Skip to main content

Class: RoomMessage

Represents a room message.

Hierarchy

Properties

author

author: Player

Inherited from

Message.author


client

client: Client

Inherited from

Message.client


content

content: string

Inherited from

Message.content

Methods

reply

reply(message): void

Reply the author with a message.

Parameters

NameType
messagestring

Returns

void

Example

client.on('roomMessage', (message) => {
if (client.name === message.author.name)
return;
message.reply('Hello');

}