Class: WhisperMessage
Represents a whisper message.
Hierarchy
↳
WhisperMessage
Properties
author
• author: TribullePlayer
Inherited from
client
• client: Client
Inherited from
community
• community: TribulleCommunity
content
• content: string
Inherited from
sentTo
• sentTo: TribullePlayer
The player name who sent to them.
Methods
reply
▸ reply(message
): void
Reply the author with a whisper message
Parameters
Name | Type |
---|---|
message | string |
Returns
void
Example
client.on('whisper', (message) => {
if (client.name === message.author.name)
return;
message.reply('Hello');
}