seyfert
Version:
The most advanced framework for discord bots
18 lines (17 loc) • 734 B
TypeScript
import type { ValidAnswerId } from '../api/Routes/channels';
import type { MessageStructure, UserStructure } from '../client/transformers';
import type { UsingClient } from '../commands';
import { type ObjectToLower } from '../common';
import type { APIPoll } from '../types';
import { Base } from './extra/Base';
export interface Poll extends ObjectToLower<APIPoll> {
}
export declare class Poll extends Base {
readonly channelId: string;
readonly messageId: string;
constructor(client: UsingClient, data: APIPoll, channelId: string, messageId: string);
get expiryTimestamp(): number;
get expiryAt(): Date;
end(): Promise<MessageStructure>;
getAnswerVoters(id: ValidAnswerId): Promise<UserStructure[]>;
}