Skip to content

Commit

Permalink
Merge pull request #1177 from howyi/main
Browse files Browse the repository at this point in the history
fix slackInteractions.shortcut parameter docs.
  • Loading branch information
seratch committed Feb 15, 2021
2 parents a3ecd2b + e5c317b commit a4f604a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_packages/interactive_messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ const web = new WebClient(token);
const port = process.env.PORT || 3000;

// Example of handling a global shortcut
slackInteractions.shortcut({ callback: 'simple-modal', type: 'shortcut' }, (payload) => {
slackInteractions.shortcut({ callbackId: 'simple-modal', type: 'shortcut' }, (payload) => {

// This example shortcut opens a view (needs to complete under 2.5 seconds)
return web.views.open({
Expand Down
2 changes: 1 addition & 1 deletion packages/interactive-messages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ const web = new WebClient(token);
const port = process.env.PORT || 3000;

// Example of handling a global shortcut
slackInteractions.shortcut({ callback: 'simple-modal', type: 'shortcut' }, (payload) => {
slackInteractions.shortcut({ callbackId: 'simple-modal', type: 'shortcut' }, (payload) => {

// This example shortcut opens a view (needs to complete under 2.5 seconds)
return web.views.open({
Expand Down

0 comments on commit a4f604a

Please sign in to comment.