hackmud-chat
Version:
A hackmud chat api wrapper for nodejs.
18 lines • 630 B
TypeScript
import { Account } from "./account";
/**
* The main class, used by all other classes.
*/
export declare class HackmudApi {
/**
* The token to be used with the api.
*/
token: string;
constructor(token?: string);
private request;
getToken(pass: string): Promise<string>;
getAccountData(): Promise<Account>;
sendChannel(channel: string, user: string, msg: string): Promise<void>;
sendMessage(user: string, toUser: string, msg: string): Promise<void>;
getChats(users: string[], after?: number, before?: number): Promise<any>;
}
//# sourceMappingURL=hackmud.api.d.ts.map