Skip to content

Commit

Permalink
Fix slackapi#1819 Add metadata to response_url params
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed May 1, 2023
1 parent 261030d commit 2c0f53c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/types/utilities.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,15 @@ describe('RespondArguments', () => {
};
assert.exists(args);
});
it('has metadata', () => {
const args: RespondArguments = {
response_type: 'in_channel',
text: 'Hey!',
metadata: {
event_type: 'test-event',
event_payload: { foo: 'bar' },
},
};
assert.exists(args);
});
});
1 change: 1 addition & 0 deletions src/types/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type ChatPostMessageArgumentsKnownKeys =
| 'as_user'
| 'attachments'
| 'blocks'
| 'metadata'
| 'icon_emoji'
| 'icon_url'
| 'link_names'
Expand Down

0 comments on commit 2c0f53c

Please sign in to comment.