Skip to content

Commit b58cd1f

Browse files
authored
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
1 parent 1cb5a16 commit b58cd1f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/app/api/tools/slack/read-messages/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export const POST = withRouteHandler(async (request: NextRequest) => {
105105
{
106106
success: false,
107107
error:
108-
'Missing required permissions. Please reconnect your Slack account with the necessary scopes (channels:history, groups:history, im:history).',
108+
'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.',
109109
},
110110
{ status: 400 }
111111
)

apps/sim/lib/oauth/oauth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,6 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
703703
'chat:write',
704704
'chat:write.public',
705705
'im:write',
706-
'im:history',
707706
'im:read',
708707
'users:read',
709708
// TODO: Add 'users:read.email' once Slack app review is approved
@@ -712,6 +711,7 @@ export const OAUTH_PROVIDERS: Record<string, OAuthProviderConfig> = {
712711
'canvases:read',
713712
'canvases:write',
714713
'reactions:write',
714+
'reactions:read',
715715
],
716716
},
717717
},

0 commit comments

Comments
 (0)