UNPKG

@amelix/phoenix.js

Version:

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

21 lines (20 loc) 737 B
import Base from "./Base"; import { Client } from "./Client"; import Server from "./Server"; import DeletedUser from "./DeletedUser"; export type AnyUser = User | DeletedUser; export default class User extends Base { username: string; avatarLastUpdated?: number; /** The image URL to this user's profile picture. */ avatarURL: string; /** Whether or not this user is a bot. */ bot: boolean; /** The mutual servers returned by getMutualServers(). */ mutualServers?: Map<string, Server>; constructor(client: Client, data: { [k: string]: any; }); /** Calculate all the mutual servers between the client and this user. */ getMutualServers(): Map<string, Server>; }