confirm
("confirm", (string) => void): this;
Emitted if the user completes the dialog. Handler functions will be passed one argument: the text that was entered.
Returns
this
Handler Function
When the confirm
event is fired, attached handler functions are called with a single argument, the text that was entered.
Example
myPrompt.on("confirm", dialogConfirmed);
function dialogConfirmed(t){
//code to run when dialog is completed with input information stored in variable t
}