diff --git a/docs/_advanced/authorization.md b/docs/_advanced/authorization.md index 4a79720fe..e00ae5088 100644 --- a/docs/_advanced/authorization.md +++ b/docs/_advanced/authorization.md @@ -44,7 +44,7 @@ const authorizeFn = async ({ teamId, enterpriseId }) => { for (const team in installations) { // Check for matching teamId and enterpriseId in the installations array if ((team.teamId === teamId) && (team.enterpriseId === enterpriseId)) { - // This is a match. Use these installaton credentials. + // This is a match. Use these installation credentials. return { // You could also set userToken instead botToken: team.botToken, @@ -56,4 +56,4 @@ const authorizeFn = async ({ teamId, enterpriseId }) => { throw new Error('No matching authorizations'); } -``` \ No newline at end of file +``` diff --git a/docs/_basic/listening_events.md b/docs/_basic/listening_events.md index 31a7f4aff..b2c5b3da9 100644 --- a/docs/_basic/listening_events.md +++ b/docs/_basic/listening_events.md @@ -13,7 +13,7 @@ The `event()` method requires an `eventType` of type string. ```javascript const welcomeChannelId = 'C12345'; -// When a user joins the team, send a message in a predfined channel asking them to introduce themselves +// When a user joins the team, send a message in a predefined channel asking them to introduce themselves app.event('team_join', async ({ event, context }) => { try { const result = await app.client.chat.postMessage({ diff --git a/docs/_basic/sending_messages.md b/docs/_basic/sending_messages.md index d2a4eed49..b4bc78255 100644 --- a/docs/_basic/sending_messages.md +++ b/docs/_basic/sending_messages.md @@ -11,7 +11,7 @@ In the case that you'd like to send a message outside of a listener or you want ```javascript -// Listens for messsages containing "knock knock" and responds with an italicized "who's there?" +// Listens for messages containing "knock knock" and responds with an italicized "who's there?" app.message('knock knock', ({ message, say }) => { say(`_Who's there?_`); }); diff --git a/docs/_basic/web_api.md b/docs/_basic/web_api.md index f310a4f1b..59c84b0a6 100644 --- a/docs/_basic/web_api.md +++ b/docs/_basic/web_api.md @@ -18,7 +18,7 @@ app.message('wake me up', async ({ message, context }) => { try { // Call the chat.scheduleMessage method with a token const result = await app.client.chat.scheduleMessage({ - // The token you used to initalize your app is stored in the `context` object + // The token you used to initialize your app is stored in the `context` object token: context.botToken, channel: message.channel.id, post_at: whenSeptemberEnds, diff --git a/docs/_tutorials/getting_started.md b/docs/_tutorials/getting_started.md index 7c6d1976a..f93e32f6d 100644 --- a/docs/_tutorials/getting_started.md +++ b/docs/_tutorials/getting_started.md @@ -99,7 +99,7 @@ Create a new file called `app.js` in this directory and add the following code: ```javascript const { App } = require('@slack/bolt'); -// Initalizes your app with your bot token and signing secret +// Initializes your app with your bot token and signing secret const app = new App({ token: process.env.SLACK_BOT_TOKEN, signingSecret: process.env.SLACK_SIGNING_SECRET @@ -222,8 +222,8 @@ app.message('hello', ({ message, say }) => { // say() sends a message to the channel where the event was triggered say({ blocks: [ - { - "type": "section", + { + "type": "section", "text": { "type": "mrkdwn", "text": `Hey there <@${message.user}>!` @@ -235,8 +235,8 @@ app.message('hello', ({ message, say }) => { "text": "Click Me" }, "action_id": "button_click" - } - } + } + } ] }); }); @@ -272,8 +272,8 @@ app.message('hello', ({ message, say }) => { // say() sends a message to the channel where the event was triggered say({ blocks: [ - { - "type": "section", + { + "type": "section", "text": { "type": "mrkdwn", "text": `Hey there <@{message.user}>!` @@ -285,8 +285,8 @@ app.message('hello', ({ message, say }) => { "text": "Click Me" }, "action_id": "button_click" - } - } + } + } ] }); });