Class: RoomMessage
Represents a room message.
Hierarchy
↳
RoomMessage
Properties
author
• author: Player
Inherited from
client
• client: Client
Inherited from
content
• content: string
Inherited from
Methods
reply
▸ reply(message
): void
Reply the author with a message.
Parameters
Name | Type |
---|---|
message | string |
Returns
void
Example
client.on('roomMessage', (message) => {
if (client.name === message.author.name)
return;
message.reply('Hello');
}