SitePollCreateInput: {
    allowVoteChange?: boolean;
    closesAt?: Date | string | null;
    description?: string | null;
    isPublished?: boolean;
    maxChoices?: number;
    opensAt?: Date | string | null;
    options: {
        description?: string | null;
        feedbackPostNumber?: number | null;
        label: string;
    }[];
    postToDiscord?: boolean;
    resultsVisibility?: SitePollResultsVisibility;
    title: string;
}

Mirrors SitePollCreateSchema in Noti-v3's src/json/zod/site.zod.ts. Defaults are the server's.

Type declaration

  • OptionalallowVoteChange?: boolean

    Default false.

  • OptionalclosesAt?: Date | string | null
  • Optionaldescription?: string | null
  • OptionalisPublished?: boolean

    Default false (draft).

  • OptionalmaxChoices?: number

    Default 1 (single choice).

  • OptionalopensAt?: Date | string | null
  • options: {
        description?: string | null;
        feedbackPostNumber?: number | null;
        label: string;
    }[]

    feedbackPostNumber links the option to a PUBLIC feedback post ({ code: 'post_not_public', number } otherwise).

  • OptionalpostToDiscord?: boolean

    Default false.

  • OptionalresultsVisibility?: SitePollResultsVisibility

    Default afterVote.

  • title: string