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
channel : TextBasedChannel

The channel that this poll is in

channelId : Snowflake

The id of the channel that this poll is in

readonly
client : Client<true>

The client that instantiated this

Inherited from: Base

readonly
expiresAt : Date | null

The date when this poll expires

expiresTimestamp : number | null

The timestamp when this poll expires

layoutType : PollLayoutType

The layout type of this poll

readonly
message : Message

The message that started this poll

messageId : Snowflake

The id of the message that started this poll

readonly
partial : false

Whether this poll is a partial

question : PollQuestionMedia

The media for this poll's question

resultsFinalized : boolean

Whether this poll's results have been precisely counted

end() : Promise<Message>

Ends this poll.

fetch() : Promise<this>

Fetches the message that started this poll, then updates the poll from the fetched message.

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

Inherited from: Base

valueOf() : string

Inherited from: Base