Skip to content

SuggestModalCommandBuilder.build method

SuggestModalCommandBuilder › build

Applies the accumulated commands to a modal. Always registers the essential navigation/action key handlers; only renders the instruction UI and registers the option-toggle shortcuts when SuggestModalCommandBuilderBuildOptions.shouldShowInstructions is true.

Signature:

build(modal: SuggestModal<unknown>, options?: SuggestModalCommandBuilderBuildOptions): void

Parameters:

ParameterTypeDescription
modalSuggestModal<unknown>The modal to apply the commands to.
options?SuggestModalCommandBuilderBuildOptionsThe build options.

Returns: void