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

Gtime sample code update #417

Merged
merged 2 commits into from
Mar 4, 2020
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/_basic/ja_opening_modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ order: 9

```javascript
// コマンド起動をリッスン
app.command('/ticket', ({ ack, payload, context }) => {
app.command('/ticket', ({ ack, body, context }) => {
// コマンドのリクエストを確認
ack();

try {
const result = app.client.views.open({
token: context.botToken,
// 適切な trigger_id を受け取ってから 3 秒以内に渡す
trigger_id: payload.trigger_id,
trigger_id: body.trigger_id,
// view の値をペイロードに含む
view: {
type: 'modal',
Expand Down
4 changes: 2 additions & 2 deletions docs/_basic/opening_modals.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Read more about modal composition in the <a href="https://api.slack.com/surfaces

```javascript
// Listen for a slash command invocation
app.command('/ticket', ({ ack, payload, context }) => {
app.command('/ticket', ({ ack, body, context }) => {
// Acknowledge the command request
ack();

try {
const result = app.client.views.open({
token: context.botToken,
// Pass a valid trigger_id within 3 seconds of receiving it
trigger_id: payload.trigger_id,
trigger_id: body.trigger_id,
// View payload
view: {
type: 'modal',
Expand Down