transformice.js
Version:
Node.js client for Transformice with full Typescript support.
28 lines (27 loc) • 715 B
TypeScript
import { Message, Player } from ".";
import Client from "../client";
/** Represents a whisper message. */
export default class WhisperMessage extends Message {
/**
* The player name who sent to them.
*/
sentTo: string;
community: number;
/**
* @hidden
*/
constructor(client: Client, author: Player, community: number, sentTo: string, content: string);
/**
* Reply the author with a whisper message
*
* @example
* ```js
* client.on('whisper', (message) => {
* if (client.name === message.author.name)
* return;
* message.reply('Hello');
* }
* ```
*/
reply(message: string): void;
}