# ConfirmableSharedOptions

`interface` in `seedcord` · v0.11.0

<https://docs.seedcord.org/packages/seedcord/0.11.0/interfaces/confirmable-shared-options>

Confirmable configuration shared across the classic and component V2 modes.

```ts
interface ConfirmableSharedOptions<
    TComponentType extends MessageComponentType = ComponentType.Button
>
```

## Properties

### decision

```ts
decision: ConfirmableDecision<TComponentType>;
```

Strategy for deciding if the user confirmed or cancelled. If omitted, implementation defaults are not specified here (but handled in logic).

### defer

```ts
defer: boolean;
```

Whether to defer the interaction automatically. 

### ephemeral

```ts
ephemeral: boolean;
```

whether the response should be ephemeral. 

### onResolved

```ts
onResolved: (r: ConfirmableResolution<TComponentType>) =>
    Promisable<void>;
```

Callback invoked after the decision is resolved and UI is cleared/replaced. This runs before the decorated method (if confirmed).

### timeoutMs

```ts
timeoutMs: number;
```

Timeout in milliseconds before the prompt is considered timed out.
