Poll

export class Poll extends Base
export class Poll extends Base
Represents a Poll

Extends

Base
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
Ends this poll.
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
valueOf():string