Skip to content

Commit

Permalink
ChatUnfurlArguments require either channel and ts or unfurl_id
Browse files Browse the repository at this point in the history
…and `source` properties to be specified in pairs. Fixes #1530.
  • Loading branch information
filmaj committed Oct 28, 2022
1 parent 62abfb7 commit 245dff4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/web-api/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1481,8 +1481,10 @@ export interface ChatScheduledMessagesListArguments extends WebAPICallOptions, T
}
cursorPaginationEnabledMethods.add('chat.scheduledMessages.list');
export interface ChatUnfurlArguments extends WebAPICallOptions, TokenOverridable {
channel: string;
ts: string;
channel?: string; // if specified, `ts` must be specified too. otherwise, `unfurl_id` and `source` must be specified.
ts?: string;
unfurl_id?: string; // if specified, `source` must be specified too. otherwise, `channel` and `ts` must be specified.
source?: 'composer' | 'conversations_history';
unfurls: LinkUnfurls;
user_auth_message?: string;
user_auth_required?: boolean;
Expand Down

0 comments on commit 245dff4

Please sign in to comment.