Skip to content

feat(methods): add apps.icon.set method example - #134

Draft
zimeg wants to merge 1 commit into
mainfrom
zimeg-feat-apps-icon-examples-set
Draft

zimeg wants to merge 1 commit into
mainfrom
zimeg-feat-apps-icon-examples-set

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for apps.icon.set in methods/src/main/java/apps/icon/AppsIconSet.java, and lists it in methods/README.md.

  • The arguments match the siblings in bolt-js-examples and bolt-python-examples, with the example values from the reference page.
  • Adds apps/icon/manifest.json with no scopes. The method needs app_configurations:write, which an app manifest can't request (apps.manifest.validate returns illegal_user_scopes), so the token comes from the app's configuration.

This is part 1 of 1 in the apps.icon stack, which is based on main and matches slackapi/java-slack-sdk#1707. This pull request is in batch B7 app settings.

  1. feat(methods): add apps.icon.set method example #134 apps.icon.set 👈 this pull request

Dependency: stays a draft

This depends on slackapi/java-slack-sdk#1707, which adds appsIconSet to slack-api-client. mvn compile fails against the pinned 1.55.0 until that ships in a release, as expected. This PR stays a draft until then, and the slack-api-client pin gets bumped to that release in this stack.

Testing

With slackapi/java-slack-sdk#1707 installed locally (./scripts/install_local.sh) and the pin pointed at that snapshot:

  1. cd methods and export SLACK_TOKEN=... with a user token with app_configurations:write.
  2. mvn compile exec:java -Dexec.mainClass=apps.icon.AppsIconSet and check the response. Replace the placeholder values with real ones to see ok.

Every example compiles against the SDK changes. The call matches the remote test in slackapi/java-slack-sdk#1707, which checks it against the live API.

🤖 Generated with Claude Code

@zimeg
zimeg changed the base branch from zimeg-feat-admin-conversations-examples-unlink-objects to main November 18, 2026 06:17
@zimeg
zimeg force-pushed the zimeg-feat-apps-icon-examples-set branch from e9f1646 to 3723493 Compare November 18, 2026 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant