UNPKG

hackmud-chat

Version:
33 lines 957 B
import { Channel } from "./channel"; import { Message } from "./message"; import { User } from "./user"; /** * Represents a message from a channel. */ export declare class ChannelMessage extends Message { /** * The channel this message is contained within. */ channel: Channel; /** * Wether or not this message means someone joined. */ isJoin: boolean; /** * Wether or not this message means someone left. */ isLeave: boolean; constructor(accountUser: User, fromUser: string, msg: string, t: number, id: string, channel: Channel, isJoin?: boolean, isLeave?: boolean); /** * Sends a reply. * * Example output: @fromUser hey * @param message The message */ reply(message: string): Promise<void>; /** * Return a string with the message formatted. */ toString(): string; } //# sourceMappingURL=channel.message.d.ts.map