# Confirmable

`function` in `seedcord` · v0.11.0

<https://docs.seedcord.org/packages/seedcord/0.11.0/functions/confirmable>

Wraps a repliable handler method with an interactive confirmation flow.

Displays a prompt, waits for a follow-up component interaction, and conditionally executes the original method based on the user's decision. The decorator supports both classic action rows + embed/content and ComponentV2 containers.

```ts
Confirmable<TComponent>(
    question: ConfirmableQuestionInput,
    options: ConfirmableOptions<TComponent>
): <TArgs extends unknown[]>(
    _target: RepliableInteractionHandler,
    _propertyKey: string,
    descriptor: TypedPropertyDescriptor<
        (...args: TArgs) => Promise<void>
    >
) => TypedPropertyDescriptor<
    (...args: TArgs) => Promise<void>
>
```

Wraps a repliable handler method with an interactive confirmation flow.

Displays a prompt, waits for a follow-up component interaction, and conditionally executes the original method based on the user's decision. The decorator supports both classic action rows + embed/content and ComponentV2 containers.

Parameters.

- `question` `ConfirmableQuestionInput` — Static string or lazy factory that resolves the prompt question.
- `options` `ConfirmableOptions<TComponent>` — Confirmation flow configuration.

Returns `<TArgs extends unknown[]>(_target: RepliableInteractionHandler, _propertyKey: string, descriptor: TypedPropertyDescriptor<(...args: TArgs) => Promise<void>>) => TypedPropertyDescriptor<(...args: TArgs) => Promise<void>>`.
