PollAPI

export declare class PollAPI
export declare class PollAPI

No summary provided.

constructor(rest)
Constructs a new instance of the PollAPI class
NameTypeOptionalDescription
restRESTNoNone
expirePoll(channelId, messageId, options?):Promise<APIMessage>
Immediately expires (i.e. ends) a poll
NameTypeOptionalDescription
channelIdSnowflakeNo
The id of the channel containing the message
messageIdSnowflakeNo
The id of the message containing the poll
optionsPick<RequestData, 'auth' | 'signal'>Yes
The options for expiring the poll
getAnswerVoters(channelId, messageId, answerId, query?, options?):Promise<RESTGetAPIPollAnswerVotersResult>
Gets the list of users that voted for a specific answer in a poll
NameTypeOptionalDescription
channelIdSnowflakeNo
The id of the channel containing the message
messageIdSnowflakeNo
The id of the message containing the poll
answerIdnumberNo
The id of the answer to get voters for
queryRESTGetAPIPollAnswerVotersQueryYes
The query for getting the list of voters
optionsPick<RequestData, 'auth' | 'signal'>Yes
The options for getting the list of voters