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
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,9 @@ public static FormBody.Builder toForm(AssistantThreadsSetStatusRequest req) {
if (req.getLoadingMessages() != null) {
setIfNotNull("loading_messages", req.getLoadingMessages().stream().collect(joining(",")), form);
}
setIfNotNull("icon_emoji", req.getIconEmoji(), form);
setIfNotNull("icon_url", req.getIconUrl(), form);
setIfNotNull("username", req.getUsername(), form);
return form;
}

Expand Down Expand Up @@ -1708,6 +1711,9 @@ public static FormBody.Builder toForm(ChatStartStreamRequest req) {
setIfNotNull("markdown_text", req.getMarkdownText(), form);
setIfNotNull("recipient_user_id", req.getRecipientUserId(), form);
setIfNotNull("recipient_team_id", req.getRecipientTeamId(), form);
setIfNotNull("icon_emoji", req.getIconEmoji(), form);
setIfNotNull("icon_url", req.getIconUrl(), form);
setIfNotNull("username", req.getUsername(), form);
return form;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,19 @@ public class AssistantThreadsSetStatusRequest implements SlackApiRequest {
* The list of messages to rotate through as a loading indicator.
*/
private List<String> loadingMessages;

/**
* Emoji to use as the icon for this message. Overrides icon_url.
*/
private String iconEmoji;

/**
* Image URL to use as the icon for this message.
*/
private String iconUrl;

/**
* The bot's username to display.
*/
private String username;
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,19 @@ public class ChatStartStreamRequest implements SlackApiRequest {
* The encoded ID of the team the user receiving the streaming text belongs to. Required when streaming to channels.
*/
private String recipientTeamId;

/**
* Emoji to use as the icon for this message. Overrides icon_url.
*/
private String iconEmoji;

/**
* Image URL to use as the icon for this message.
*/
private String iconUrl;

/**
* The bot's username to display.
*/
private String username;
}