UNPKG

node-groupme

Version:

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

25 lines 1.15 kB
import type { Client, Group } from '..'; import { Collection, GroupMessage, MessageManager } from '..'; import type { MessageRequestParams } from './MessageManager'; interface GroupMessageManagerInterface { client: Client; channel: Group; cache: Collection<string, GroupMessage>; fetch(): Promise<Collection<string, GroupMessage>>; fetch(id: string): Promise<GroupMessage>; fetch(ids: string[]): Promise<Collection<string, GroupMessage>>; fetch(options: MessageRequestParams): Promise<Collection<string, GroupMessage>>; } export default class GroupMessageManager extends MessageManager<Group, GroupMessage, typeof GroupMessage> implements GroupMessageManagerInterface { constructor(client: Client, channel: Group); fetch(): Promise<Collection<string, GroupMessage>>; fetch(id: string): Promise<GroupMessage>; fetch(ids: string[]): Promise<Collection<string, GroupMessage>>; fetch(options: MessageRequestParams): Promise<Collection<string, GroupMessage>>; private fetchId; private fetchIds; private fetchIndex; private fetchAll; } export {}; //# sourceMappingURL=GroupMessageManager.d.ts.map