matrix-appservice-slack
matrix-appservice-slack copied to clipboard
New Slack Apps do not support as_user or RTM
We need to add documentation to explain to users how to create "Classic" Slack apps. We also need to support New Slack apps.
:sob:
Given:
New apps currently cannot override their username or icon when posting messages. That ability will arrive soon, and your app can request a new scope to enable it.
From https://api.slack.com/authentication/quickstart#soon I would propose we explicitly do not support "new" slack apps until that feature lands. RTM is obviously a shame, but we still have the events code which people can use if they want to use a new app for some reason.
Hi there, I guess an explanation would be helpful. We currently run into
Feb-6 13:50:32.171 ERROR Main Failed processing matrix message: { Error: An API error occurred: invalid_arguments
at Object.platformErrorFromResult (/opt/matrix-appservice-slack/node_modules/@slack/web-api/dist/errors.js:50:33)
at WebClient.apiCall (/opt/matrix-appservice-slack/node_modules/@slack/web-api/dist/WebClient.js:465:28)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
code: 'slack_webapi_platform_error',
data:
{ ok: false,
error: 'invalid_arguments',
deprecated_argument: 'as_user',
response_metadata: { scopes: [Array], acceptedScopes: [Array] } } }
Which totally sounds like it could be because of the changes made by slack. Do you guys have any pointers how to create a "classic" slack app?
You can follow this link: https://api.slack.com/apps?new_classic_app=1
Quickest response ever! Thank you, I'll try that out =)
Edit: Works like a charm!
And under "App Home" you have to add a legacy bot user
#356 adds a note to the README, but we still need to fix this.
They do now have support for name and avatar though: https://api.slack.com/scopes/chat:write.customize (thanks @tulir )
Ah awesome. Easy to fix then.