UNPKG

node-groupme

Version:

The only GroupMe API library that isn't a million years old.

21 lines 799 B
import type { Client } from '..'; import { BaseManager, Chat, Collection } from '..'; interface ChatManagerInterface { client: Client; cache: Collection<string, Chat>; fetch(): Promise<Collection<string, Chat>>; fetch(id: string): Promise<Chat>; fetch(ids: string[]): Promise<Collection<string, Chat | null>>; } export default class ChatManager extends BaseManager<Chat, typeof Chat> implements ChatManagerInterface { constructor(client: Client); fetch(): Promise<Collection<string, Chat>>; fetch(id: string): Promise<Chat>; fetch(ids: string[]): Promise<Collection<string, Chat | null>>; fetchChats(options?: { page?: number; per_page?: number; }): Promise<Collection<string, Chat>>; } export {}; //# sourceMappingURL=ChatManager.d.ts.map