accept()
Accept action to perform on dialogs
Examples
Section titled “Examples”prompt('Message', async () => await accept('Something'))prompt('Message', async () => await accept())Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
text | string | Expected text of the dialog (optional) Default: "". |
Returns
Section titled “Returns”| Type | Description |
|---|---|
Promise<void> | Resolves when dialog is accepted |