@typed-discord/rest
    Preparing search index...

    Interface PollCreateRequest

    interface PollCreateRequest {
        allow_multiselect?: boolean | null;
        answers: PollAnswerCreateRequest[];
        duration?: number | null;
        layout_type?: DEFAULT | null;
        question: PollMedia;
    }
    Index

    Properties

    allow_multiselect?: boolean | null

    Whether a user can select multiple answers

    Each of the answers available in the poll, up to 10

    duration?: number | null

    Number of hours the poll should be open for, up to 32 days. Defaults to 24

    layout_type?: DEFAULT | null

    The layout type of the poll. Defaults to... DEFAULT!

    question: PollMedia

    The question of the poll. Only text is supported.