Preview deployment

class Poll

extends

Base
export class Poll extends Base

Represents a Poll

allowMultiselect : boolean

Whether this poll allows multiple answers

The answers of this poll

readonly
client : Client<true>

The client that instantiated this

Inherited from: Base

readonly
expiresAt : Date

The date when this poll expires

expiresTimestamp : number

The timestamp when this poll expires

layoutType : PollLayoutType

The layout type of this poll

readonly
message : Message

The message that started this poll

The media for this poll's question

resultsFinalized : boolean

Whether this poll's results have been precisely counted

end() : Promise<Message>

Ends this poll.

toJSON(
...props: Record<string, boolean | string>[]
) : unknown

Inherited from: Base

valueOf() : string

Inherited from: Base