node-groupme
Version:
The only GroupMe API library that isn't a million years old.
26 lines • 936 B
TypeScript
import type { Client, Collection, Group } from '..';
import { BaseManager, Poll } from '..';
interface PollManagerInterface {
fetch(): Promise<Collection<string, Poll>>;
fetch(id: string): Promise<Poll>;
create(question: string, options: string[], settings?: {
duration?: number;
endAt?: Date;
public?: boolean;
allowMultipleResponses?: boolean;
}): Promise<Poll>;
}
export default class PollManager extends BaseManager<Poll, typeof Poll> implements PollManagerInterface {
readonly group: Group;
constructor(client: Client, group: Group);
create(question: string, options: string[], settings?: {
duration?: number;
endAt?: Date;
public?: boolean;
allowMultipleResponses?: boolean;
}): Promise<Poll>;
fetch(): Promise<Collection<string, Poll>>;
fetch(id: string): Promise<Poll>;
}
export {};
//# sourceMappingURL=PollManager.d.ts.map