Skip to main content

Class: WhisperMessage

Represents a whisper message.

Hierarchy

Properties

author

author: TribullePlayer

Inherited from

TribulleMessage.author


client

client: Client

Inherited from

TribulleMessage.client


community

community: TribulleCommunity


content

content: string

Inherited from

TribulleMessage.content


sentTo

sentTo: TribullePlayer

The player name who sent to them.

Methods

reply

reply(message): void

Reply the author with a whisper message

Parameters

NameType
messagestring

Returns

void

Example

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