node-groupme
Version:
The only GroupMe API library that isn't a million years old.
17 lines • 521 B
TypeScript
import type { PollOptionData } from 'groupme-api-types';
import type { Poll } from '..';
import { Base } from '..';
interface PollOptionInterface {
vote(): Promise<this>;
}
export default class PollOption extends Base implements PollOptionInterface {
readonly poll: Poll;
title: string;
votes: number;
voters?: string[];
constructor(poll: Poll, data: PollOptionData);
_patch(data: Partial<PollOptionData>): this;
vote(): Promise<this>;
}
export {};
//# sourceMappingURL=PollOption.d.ts.map