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

    Interface FileUploadFormEntry

    A form entry using a file upload component. Allows users to upload one or more files.

    interface FileUploadFormEntry {
        answer?: string | string[];
        componentType: "file_upload";
        customId: string;
        description?: string;
        label: string;
        parser: (answer: string | string[]) => string | string[];
        raw?: string | string[];
        responseType: "file_url" | "file_urls";
    }

    Hierarchy (View Summary)

    • FormEntryBase<string | string[]>
    • Omit<FileUploadComponentData, "customId" | "type">
      • FileUploadFormEntry
    Index

    Properties

    answer?: string | string[]

    The parsed answer with proper typing.

    FormEntryBase

    componentType: "file_upload"

    The component type identifier.

    FileUploadFormEntry

    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[]) => string | string[]

    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

    responseType: "file_url" | "file_urls"

    The expected response type. 'file_url' for single, 'file_urls' for multiple files.

    FileUploadFormEntry