Interface PollBlock

An NPF poll type content block.

This is not an officially-documented block type, so its documentation is best-effort.

interface PollBlock {
    answers: PollAnswer[];
    client_id: string;
    created_at: string;
    question: string;
    settings: PollSettings;
    timestamp: number;
    type: "poll";
}

Properties

answers: PollAnswer[]

The possible answers for the poll.

client_id: string

The UUID for this poll.

created_at: string

A string representation of the moment this poll was created.

question: string

The question this poll is answering.

settings: PollSettings

The settings for creating this poll.

timestamp: number

The number of seconds (not milliseconds) since the epoch at which this poll was created.

type