UNPKG

dressed

Version:

A sleek, serverless-ready Discord bot framework.

16 lines (15 loc) 906 B
import type { RESTGetAPIPollAnswerVotersQuery, RESTGetAPIPollAnswerVotersResult, RESTPostAPIPollExpireResult, Snowflake } from "discord-api-types/v10"; /** * Get a list of users that voted for this specific answer. * @param channel The channel to get the message from * @param message The message to get the poll from * @param answer The answer to get the voters from * @param options Optional parameters for the request */ export declare function listAnswerVoters(channel: Snowflake, message: Snowflake, answer: number, options?: RESTGetAPIPollAnswerVotersQuery): Promise<RESTGetAPIPollAnswerVotersResult>; /** * Immediately ends the poll. You cannot end polls from other users. * @param channel The channel to get the message from * @param message The message containing the poll */ export declare function endPoll(channel: Snowflake, message: Snowflake): Promise<RESTPostAPIPollExpireResult>;