Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use destructuring import for IncomingWebhook #782

Merged
merged 1 commit into from
Jul 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_packages/webhook.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The webhook can be initialized with default arguments that are reused each time
parameter to the constructor to set the default arguments.

```javascript
const IncomingWebhook = require('@slack/webhook');
const { IncomingWebhook } = require('@slack/webhook');
const url = process.env.SLACK_WEBHOOK_URL;

// Initialize with defaults
Expand All @@ -72,7 +72,7 @@ Something interesting just happened in your app, so its time to send the notific
the message. The method returns a `Promise` that resolves once the notification is sent.

```javascript
const IncomingWebhook = require('@slack/webhook');
const { IncomingWebhook } = require('@slack/webhook');
const url = process.env.SLACK_WEBHOOK_URL;

const webhook = new IncomingWebhook(url);
Expand Down
4 changes: 2 additions & 2 deletions packages/webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The webhook can be initialized with default arguments that are reused each time
parameter to the constructor to set the default arguments.

```javascript
const IncomingWebhook = require('@slack/webhook');
const { IncomingWebhook } = require('@slack/webhook');
const url = process.env.SLACK_WEBHOOK_URL;

// Initialize with defaults
Expand All @@ -70,7 +70,7 @@ Something interesting just happened in your app, so its time to send the notific
the message. The method returns a `Promise` that resolves once the notification is sent.

```javascript
const IncomingWebhook = require('@slack/webhook');
const { IncomingWebhook } = require('@slack/webhook');
const url = process.env.SLACK_WEBHOOK_URL;

const webhook = new IncomingWebhook(url);
Expand Down