Skip to content
Merged
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
7 changes: 7 additions & 0 deletions internal/slackerror/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const (
ErrRatelimited = "ratelimited"
ErrRequestIDOrAppIDIsRequired = "request_id_or_app_id_is_required"
ErrRestrictedPlanLevel = "restricted_plan_level"
ErrRestrictedScopes = "restricted_scopes"
ErrRuntimeNotFound = "runtime_not_found"
ErrRuntimeNotSupported = "runtime_not_supported"
ErrSDKConfigLoad = "sdk_config_load_error"
Expand Down Expand Up @@ -1401,6 +1402,12 @@ Otherwise start your app for local development with: %s`,
Message: "Your Slack plan does not have access to the requested feature",
},

ErrRestrictedScopes: {
Code: ErrRestrictedScopes,
Message: "You don't have permission to install an app that requests one or more of its scopes",
Remediation: "Some scopes can only be granted by a workspace admin or owner, such as admin and audit scopes or the Slack Connect bot scopes `conversations.connect:manage` and `conversations.connect:write`.\nAsk a workspace admin or owner to install the app, or remove the restricted scopes from the app manifest.",
},

ErrRuntimeNotFound: {
Code: ErrRuntimeNotFound,
Message: "The hook runtime executable was not found",
Expand Down
Loading