diff --git a/slack-api-client/src/main/java/com/slack/api/methods/AsyncMethodsClient.java b/slack-api-client/src/main/java/com/slack/api/methods/AsyncMethodsClient.java index 724ee50a8..d45dc67f4 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/AsyncMethodsClient.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/AsyncMethodsClient.java @@ -1070,8 +1070,10 @@ CompletableFuture CompletableFuture filesSharedPublicURL(RequestConfigurator req); + @Deprecated // https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay CompletableFuture filesUpload(FilesUploadRequest req); + @Deprecated // https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay CompletableFuture filesUpload(RequestConfigurator req); CompletableFuture filesGetUploadURLExternal(FilesGetUploadURLExternalRequest req); @@ -1230,8 +1232,10 @@ CompletableFuture // rtm // ------------------------------ + @Deprecated // https://api.slack.com/changelog/2024-04-discontinuing-new-creation-of-classic-slack-apps-and-custom-bots CompletableFuture rtmConnect(RTMConnectRequest req); + @Deprecated // https://api.slack.com/changelog/2024-04-discontinuing-new-creation-of-classic-slack-apps-and-custom-bots CompletableFuture rtmConnect(RequestConfigurator req); @Deprecated diff --git a/slack-api-client/src/main/java/com/slack/api/methods/Methods.java b/slack-api-client/src/main/java/com/slack/api/methods/Methods.java index 581b1c64a..79c94a1e0 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/Methods.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/Methods.java @@ -447,6 +447,7 @@ private Methods() { public static final String FILES_LIST = "files.list"; public static final String FILES_REVOKE_PUBLIC_URL = "files.revokePublicURL"; public static final String FILES_SHARED_PUBLIC_URL = "files.sharedPublicURL"; + @Deprecated // https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay public static final String FILES_UPLOAD = "files.upload"; public static final String FILES_GET_UPLOAD_URL_EXTERNAL = "files.getUploadURLExternal"; @@ -598,6 +599,7 @@ private Methods() { // rtm // ------------------------------ + @Deprecated // https://api.slack.com/changelog/2024-04-discontinuing-new-creation-of-classic-slack-apps-and-custom-bots public static final String RTM_CONNECT = "rtm.connect"; @Deprecated // https://api.slack.com/changelog/2021-10-rtm-start-to-stop public static final String RTM_START = "rtm.start"; diff --git a/slack-api-client/src/main/java/com/slack/api/methods/MethodsClient.java b/slack-api-client/src/main/java/com/slack/api/methods/MethodsClient.java index 22106a2ce..bf9f2f5b0 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/MethodsClient.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/MethodsClient.java @@ -1356,8 +1356,10 @@ AdminUsergroupsRemoveChannelsResponse adminUsergroupsRemoveChannels( FilesSharedPublicURLResponse filesSharedPublicURL(RequestConfigurator req) throws IOException, SlackApiException; + @Deprecated // https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay FilesUploadResponse filesUpload(FilesUploadRequest req) throws IOException, SlackApiException; + @Deprecated // https://api.slack.com/changelog/2024-04-a-better-way-to-upload-files-is-here-to-stay FilesUploadResponse filesUpload(RequestConfigurator req) throws IOException, SlackApiException; FilesGetUploadURLExternalResponse filesGetUploadURLExternal(FilesGetUploadURLExternalRequest req) throws IOException, SlackApiException; @@ -1772,8 +1774,10 @@ AdminUsergroupsRemoveChannelsResponse adminUsergroupsRemoveChannels( // rtm // ------------------------------ + @Deprecated // https://api.slack.com/changelog/2024-04-discontinuing-new-creation-of-classic-slack-apps-and-custom-bots RTMConnectResponse rtmConnect(RTMConnectRequest req) throws IOException, SlackApiException; + @Deprecated // https://api.slack.com/changelog/2024-04-discontinuing-new-creation-of-classic-slack-apps-and-custom-bots RTMConnectResponse rtmConnect(RequestConfigurator req) throws IOException, SlackApiException; @Deprecated diff --git a/slack-api-client/src/main/java/com/slack/api/methods/impl/AsyncMethodsClientImpl.java b/slack-api-client/src/main/java/com/slack/api/methods/impl/AsyncMethodsClientImpl.java index 0199d10a4..8990d8f62 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/impl/AsyncMethodsClientImpl.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/impl/AsyncMethodsClientImpl.java @@ -1923,11 +1923,13 @@ public CompletableFuture filesSharedPublicURL(Requ } @Override + @Deprecated public CompletableFuture filesUpload(FilesUploadRequest req) { return executor.execute(FILES_UPLOAD, toMap(req), () -> methods.filesUpload(req)); } @Override + @Deprecated public CompletableFuture filesUpload(RequestConfigurator req) { return filesUpload(req.configure(FilesUploadRequest.builder()).build()); } @@ -2237,11 +2239,13 @@ public CompletableFuture remindersList(RequestConfigurato } @Override + @Deprecated public CompletableFuture rtmConnect(RTMConnectRequest req) { return executor.execute(RTM_CONNECT, toMap(req), () -> methods.rtmConnect(req)); } @Override + @Deprecated public CompletableFuture rtmConnect(RequestConfigurator req) { return rtmConnect(req.configure(RTMConnectRequest.builder()).build()); } diff --git a/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java b/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java index db60fba68..05dc90411 100644 --- a/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java +++ b/slack-api-client/src/main/java/com/slack/api/methods/impl/MethodsClientImpl.java @@ -2906,11 +2906,13 @@ public RemindersListResponse remindersList(RequestConfigurator req) throws IOException, SlackApiException { return rtmConnect(req.configure(RTMConnectRequest.builder()).build()); }