Skip to content

Commit 37cbe89

Browse files
authored
feat: add session_status to chat.stopStream (#1634)
1 parent ff1d546 commit 37cbe89

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎slack-api-client/src/main/java/com/slack/api/methods/RequestFormBuilder.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,7 @@ public static FormBody.Builder toForm(ChatStopStreamRequest req) {
17941794
if (req.getBlocksAsString() != null && req.getBlocks() != null) {
17951795
log.warn("Although you set both blocksAsString and blocks, only blocksAsString was used.");
17961796
}
1797+
setIfNotNull("session_status", req.getSessionStatus(), form);
17971798
return form;
17981799
}
17991800

‎slack-api-client/src/main/java/com/slack/api/methods/request/chat/ChatStopStreamRequest.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,9 @@ public class ChatStopStreamRequest implements SlackApiRequest {
5656
* A JSON-based array of structured blocks as a String that will be rendered at the bottom of the finalized message, presented as a URL-encoded string.
5757
*/
5858
private String blocksAsString;
59+
60+
/**
61+
* The session status to set after stopping the stream. Defaults to `active`.
62+
*/
63+
private String sessionStatus;
5964
}

0 commit comments

Comments
 (0)