@hunteroi/discord-form
    Preparing search index...

    Interface FormEntryBase<T>

    Base interface for all form entries. Defines common properties across different component types.

    FormEntryBase

    interface FormEntryBase<T> {
        answer?: T;
        customId: string;
        description?: string;
        label: string;
        parser: (answer: string | string[]) => T;
        raw?: string | string[];
    }

    Type Parameters

    • T

      The type of the parsed answer

    Hierarchy (View Summary)

    Index

    Properties

    answer?: T

    The parsed answer with proper typing.

    FormEntryBase

    customId: string

    The unique identifier for this form entry.

    FormEntryBase

    description?: string

    Optional description to provide additional context. Max 100 characters. Displayed under the label.

    FormEntryBase

    label: string

    The label displayed to the user. For text inputs and file uploads: shown in the label component For select menus: shown in the label component

    FormEntryBase

    parser: (answer: string | string[]) => T

    The parser function to transform the response(s) to the proper type.

    FormEntryBase

    raw?: string | string[]

    The raw value(s) of the entry as returned by Discord.

    FormEntryBase