Type Alias PromptConfirmationOptions<I>

PromptConfirmationOptions: {
    content?: InteractionReplyOptions & InteractionEditReplyOptions;
    ephemeral?: boolean;
    interaction: I;
    onCancel?: (
        interaction: ButtonInteraction<
            I extends RepliableInteraction<infer C> ? C : CacheType,
        >,
    ) => void | Promise<void>;
    onConfirm?: (
        interaction: ButtonInteraction<
            I extends RepliableInteraction<infer C> ? C : CacheType,
        >,
    ) => void | Promise<void>;
}

Type Parameters

  • I extends RepliableInteraction<CacheType>

Type declaration

  • Optionalcontent?: InteractionReplyOptions & InteractionEditReplyOptions
  • Optionalephemeral?: boolean
  • interaction: I
  • OptionalonCancel?: (
        interaction: ButtonInteraction<
            I extends RepliableInteraction<infer C> ? C : CacheType,
        >,
    ) => void | Promise<void>
  • OptionalonConfirm?: (
        interaction: ButtonInteraction<
            I extends RepliableInteraction<infer C> ? C : CacheType,
        >,
    ) => void | Promise<void>