Interfaceseedcordv0.10.6
interface ConfirmableComponentsV2Options<
TComponentType extends MessageComponentType = ComponentType.Button
> extends ConfirmableSharedOptions<TComponentType>interface ConfirmableComponentsV2Options<
TComponentType extends MessageComponentType = ComponentType.Button
> extends ConfirmableSharedOptions<TComponentType>TComponentType
TComponentType extends MessageComponentType = ComponentType.ButtonTComponentType extends MessageComponentType = ComponentType.Buttoncontainer: ConfirmableFactory<BuilderComponent<"container">>;container: ConfirmableFactory<BuilderComponent<"container">>;decision
Strategy for deciding if the user confirmed or cancelled. If omitted, implementation defaults are not specified here (but handled in logic).
decision: ConfirmableDecision<TComponentType>;decision: ConfirmableDecision<TComponentType>;Inherited from:ConfirmableSharedOptions
- optional
defer
Whether to defer the interaction automatically.
Inherited from:ConfirmableSharedOptions
- optional
ephemeral
whether the response should be ephemeral.
Inherited from:ConfirmableSharedOptions
mode: "v2";mode: "v2";- optional
onResolved
Callback invoked after the decision is resolved and UI is cleared/replaced. This runs before the decorated method (if confirmed).
onResolved: (r: ConfirmableResolution<TComponentType>) =>
Promisable<void>;onResolved: (r: ConfirmableResolution<TComponentType>) =>
Promisable<void>;Inherited from:ConfirmableSharedOptions
outcomeUi: ConfirmableOutcomeUiV2;outcomeUi: ConfirmableOutcomeUiV2;- optional
timeoutMs
Timeout in milliseconds before the prompt is considered timed out.
Inherited from:ConfirmableSharedOptions