UNPKG

transformice.js

Version:

Node.js client for Transformice with full Typescript support.

31 lines (30 loc) 802 B
import { Player, Message, Channel } from "."; import Client from "../client"; /** Represents a Channel message. */ export default class ChannelMessage extends Message { /** * Community of the author that sends the message */ community: number; /** * The Channel the message is sent to */ channel: Channel; /** * @hidden */ constructor(client: Client, author: Player, content: string, community: number, channel: Channel); /** * Reply the author with a message. * * @example * ```js * client.on('channelMessage', (message) => { * if (client.name === message.author.name) * return; * message.reply('Hello'); * } * ``` */ reply(message: string): void; }