fix(slack): request reactions:read in OAuth URL, drop im:history (#4856)

* fix(slack): request reactions:read in OAuth URL, drop im:history

* chore(slack): update read-messages missing-scope message to drop im:history
This commit is contained in:
Waleed
2026-06-02 19:31:50 -07:00
committed by GitHub
parent 1cb5a1653b
commit b58cd1f6b1
2 changed files with 2 additions and 2 deletions
@@ -105,7 +105,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
{
success: false,
error:
'Missing required permissions. Please reconnect your Slack account with the necessary scopes (channels:history, groups:history, im:history).',
'Missing required permissions. Reconnect your Slack account to grant channel history access (channels:history, groups:history). Reading direct message history is not supported with the Sim bot.',
},
{ status: 400 }
)
+1 -1
View File
@@ -703,7 +703,6 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
'chat:write',
'chat:write.public',
'im:write',
'im:history',
'im:read',
'users:read',
// TODO: Add 'users:read.email' once Slack app review is approved
@@ -712,6 +711,7 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
'canvases:read',
'canvases:write',
'reactions:write',
'reactions:read',
],
},
},