UNPKG

linkup-bot-lib

Version:

36 lines (35 loc) 1.08 kB
/** * @module Message */ import { Message } from "./Message"; import { Client } from "../Client"; export declare class TextMessage extends Message { message: string; /** * @description Creates a new text message. * @since 1.0 * @author MiTask * @constructor * @param peerName Peer username * @param peerAvatar Peer avatar URL * @param topic Chat room topic string * @param timestamp UNIX Timestamp * @param message Text of the message */ constructor(peerName: string, peerAvatar: string, topic: string | null, timestamp: number, message: string); /** * @since 1.0 * @author MiTask * @returns {String} JSON String with all of the information about the message */ toJsonString(): string; /** * @description Creates a new text message instance. * @since 1.0 * @author MiTask * @param bot Bot Client class * @param message Text of the message * @returns {TextMessage} TextMessage instance */ static new(bot: Client, message: string): TextMessage; }