Skip to content

Commit

Permalink
Add new force argument to conversations.invite API method. (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil Maj authored Dec 1, 2023
1 parent 434ddcf commit bd94b40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1620,6 +1620,7 @@ public static FormBody.Builder toForm(ConversationsInfoRequest req) {
public static FormBody.Builder toForm(ConversationsInviteRequest req) {
FormBody.Builder form = new FormBody.Builder();
setIfNotNull("channel", req.getChannel(), form);
setIfNotNull("force", req.getForce(), form);
if (req.getUsers() != null) {
setIfNotNull("users", req.getUsers().stream().collect(joining(",")), form);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ public class ConversationsInviteRequest implements SlackApiRequest {
*/
private List<String> users;

/**
* When set to `true` and multiple user IDs are provided, continue inviting the valid ones while disregarding invalid IDs. Defaults to `false`.
*/
private Boolean force;

}

0 comments on commit bd94b40

Please sign in to comment.