Repository navigation
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
This was referenced Nov 18, 2026
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg
marked this pull request as ready for review
November 20, 2026 10:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request adds a method example for
apps.icon.setinmethods/src/apps/icon/apps-icon-set.js, and lists it inmethods/README.md.url. The other way,file, takes the image contents as aBuffer.app_idorurl, so the example usesA0123456789andhttps://example.com/icon.png.app_configurations:writecomes with an app configuration token or a manager app's token, and app manifests reject it (illegal_user_scopes).This is the only pull request in the
apps.iconexamples stack (batch B7 app settings), and it's based onmain. Example stacks are grouped by family, so #431 adds theapps.managed.permissions.setexample from the same batch in its own stack.apps.icon.set👈 this pull requestDependency
This depends on slackapi/node-slack-sdk#2866, which adds
apps.icon.setto@slack/web-api. It shipped in@slack/web-api@8.5.0, whichmethods/package.jsonnow pins.Testing
cd methods/src/apps/icon && slack install --environment local, thenexport SLACK_TOKEN=...with an app configuration token, which carriesapp_configurations:write.slack run apps-icon-set.jsand confirm the response. ReplaceA0123456789with an app you own and the URL with a public image between 512x512px and 2000x2000px to seeok.bots.infofor its bot returns newiconsURLs right away, and the bot user's profile image follows within a few minutes.With a local build of slackapi/node-slack-sdk#2866, the same
client.apps.icon.setcall on a real app returnedok, changed the bot'siconsimmediately and changed the bot user's avatar about two minutes later.🤖 Generated with Claude Code