Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/great-seas-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@slack/web-api": major
---

fix: update SlackListsItemFieldMessage to support single and array message shapes
16 changes: 14 additions & 2 deletions packages/web-api/src/types/request/slackLists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,23 @@ export interface SlackListsItemFieldLink {
}

/**
* @description Message field with message URLs.
* @description A single message object returned by the Slack API.
*/
export interface SlackListsItemMessage {
text?: string;
ts?: string;
user?: string;
team?: string;
type?: string;
}

/**
* @description Message field. The API may return either a single message object
* or an array of message objects.
*/
export interface SlackListsItemFieldMessage {
column_id: string;
message: string[];
message: SlackListsItemMessage | SlackListsItemMessage[];
}

/**
Expand Down