@slack/client
Version:
A library for creating a Slack client
21 lines (16 loc) • 663 B
Markdown
layout: page
title: DialogFacet
permalink: /reference/DialogFacet
**Kind**: global class
<a name="DialogFacet+open"></a>
### dialogFacet.open(dialog, triggerId, [optCb])
Opens a dialog corresponding to the trigger.
**Kind**: instance method of <code>[DialogFacet](#DialogFacet)</code>
**See**: [dialog.open](https://api.slack.com/methods/dialog.open)
| Param | Type | Description |
| --- | --- | --- |
| dialog | <code>?</code> | The dialog definition, as a JSON-encoded string. |
| triggerId | <code>?</code> | The trigger that this dialog opens in response to. |
| [optCb] | <code>function</code> | Optional callback, if not using promises. |