UNPKG

@ariusii/intersect.ts

Version:

The Intersect Engine API Client Library based on TS.

55 lines 2.22 kB
/** * This is the Chat Class, it contains all the methods to handle the chat. * Those actions do not require any Query Role. * @class Chat * @link https://docs.freemmorpgmaker.com/en-US/api/v1/endpoints/chat.html * @author AriusII */ export declare class Chat { private _url; private _token; private defaultColor; constructor(_url: string, _token: string); /** * Sends a chat message to everyone currently logged into your game. * @param {string} message - The message you want to send. * @param {Array} - { a: number, r: number, g: number, b: number }, by default it's black. * @param {string} [target] - The target of the message. (Optional) * @returns - The response from the server. */ globalMessage(message: string, color: { a: number; r: number; g: number; b: number; }, target: string): Promise<any>; /** * Sends a chat message to everyone in the proximity of a given map. * @param {string} map - The Map ID you want to send the message to. * @param {string} message - The message you want to send. * @param {Array} - { a: number, r: number, g: number, b: number }, by default it's black. * @param {string} [target] - The target of the message. (Optional) * @returns - The response from the server. */ proximityMessage(mapid: string, message: string, color: { a: number; r: number; g: number; b: number; }, target: string): Promise<any>; /** * Sends a chat message to a specific player. * @param {string} player - The Account Name or Player Name you want to send the message to. * @param {string} message - The message you want to send. * @param {Array} - { a: number, r: number, g: number, b: number }, by default it's black. * @param {string} [target] - The target of the message. (Optional) * @returns - The response from the server. */ directMessage(user: string, message: string, color: { a: number; r: number; g: number; b: number; }, target: string): Promise<any>; } //# sourceMappingURL=chat.d.ts.map