Skip to content

Poll ​

classe · Source

Represents a Poll

Extends: Base

Properties ​

message ​

readonly

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 ​

readonly

expiresAt: Date

The date when this poll expires Source

client ​

readonly

client: Client

The client that instantiated this Source

Methods ​

end ​

async

async end(): Promise<Message>

Ends this poll. Returns: Promise<Message>Source

Unofficial software. Not affiliated with or supported by Discord.