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

fixed small errors in docs #186

Merged
merged 10 commits into from
May 7, 2019
4 changes: 2 additions & 2 deletions docs/_advanced/authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -56,4 +56,4 @@ const authorizeFn = async ({ teamId, enterpriseId }) => {

throw new Error('No matching authorizations');
}
```
```
2 changes: 1 addition & 1 deletion docs/_basic/listening_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion docs/_basic/sending_messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ In the case that you'd like to send a message outside of a listener or you want
</div>

```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?_`);
});
Expand Down
2 changes: 1 addition & 1 deletion docs/_basic/web_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
18 changes: 9 additions & 9 deletions docs/_tutorials/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}>!`
Expand All @@ -235,8 +235,8 @@ app.message('hello', ({ message, say }) => {
"text": "Click Me"
},
"action_id": "button_click"
}
}
}
}
]
});
});
Expand Down Expand Up @@ -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}>!`
Expand All @@ -285,8 +285,8 @@ app.message('hello', ({ message, say }) => {
"text": "Click Me"
},
"action_id": "button_click"
}
}
}
}
]
});
});
Expand Down