UNPKG

@amelix/phoenix.js

Version:

A feature-rich API wrapper for the critically acclaimed chatting app Phoenix.. or something.

29 lines (28 loc) 989 B
import { Client } from "./Client"; import User from "./User"; export default class ClientUser extends User { servers: string[]; /** The client's current global settings. This is always empty for bots. */ settings: Settings; constructor(client: Client, data: { [k: string]: any; }); /** Delete the client's avatar, replacing it with the default. */ deleteAvatar(): Promise<void>; /** Edit this client's Phoenix account.*/ edit(data: AccountData, oldPassword?: string): Promise<void>; /** * Permanently delete the client's account. * @param deleteServers Whether to delete all user's servers or automatically pass ownership of them to other users. Defaults to true. */ delete(password: string, deleteServers?: boolean): Promise<void>; } interface AccountData { username?: string; password?: string; settings?: Settings; } interface Settings { backgroundURL?: string; } export {};