Interface FormManagerOptions

The manager options.

FormManagerOptions

interface FormManagerOptions {
    buttonLabel: string;
    canRetakeForm?: boolean;
    formEntries: OneToFiveElements<FormEntry>;
    formResponseWhenSubmitted: string | MessageEditOptions;
    formTitle: string;
    introductionMessage?: string | MessageCreateOptions;
}

Properties

buttonLabel: string

The label used for the button component.

canRetakeForm?: boolean

Whether the form should stay in the DM or not, to allow users to submit answers again or not.

Memberof

FormManagerOptions

formEntries: OneToFiveElements<FormEntry>

The form entries. The array is limited to maximum 5 elements.

formResponseWhenSubmitted: string | MessageEditOptions

The message sent when a form is submitted.

formTitle: string

The title of the form modal.

introductionMessage?: string | MessageCreateOptions

The message sent with the button component.