Poll
classe · Source
Represents a Poll
Extends: Base
Properties
message
message: Message
The message that started this poll Source
question
question: PollQuestionMedia
The media for this poll's question Source
answers
answers: Collection<number, PollAnswer>
The answers of this poll Source
expiresTimestamp
expiresTimestamp: number
The timestamp when this poll expires Source
allowMultiselect
allowMultiselect: boolean
Whether this poll allows multiple answers Source
layoutType
layoutType: PollLayoutType
The layout type of this poll Source
resultsFinalized
resultsFinalized: boolean
Whether this poll's results have been precisely counted Source
expiresAt
expiresAt: Date
The date when this poll expires Source
client
client: Client
The client that instantiated this Source
Methods
end
async end(): Promise<Message>
Ends this poll. Returns: Promise<Message>Source