Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Slack Apps do not support as_user or RTM #348

Open
Half-Shot opened this issue Jan 23, 2020 · 9 comments
Open

New Slack Apps do not support as_user or RTM #348

Half-Shot opened this issue Jan 23, 2020 · 9 comments
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.

Comments

@Half-Shot
Copy link
Contributor

We need to add documentation to explain to users how to create "Classic" Slack apps. We also need to support New Slack apps.

@Cadair
Copy link
Collaborator

Cadair commented Jan 23, 2020

😭

@Cadair
Copy link
Collaborator

Cadair commented Jan 23, 2020

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.

@ErrorProne
Copy link

ErrorProne commented Feb 6, 2020

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?

@Cadair
Copy link
Collaborator

Cadair commented Feb 6, 2020

You can follow this link: https://api.slack.com/apps?new_classic_app=1

@ErrorProne
Copy link

ErrorProne commented Feb 6, 2020

Quickest response ever!
Thank you, I'll try that out =)

Edit:
Works like a charm!

@Sorunome
Copy link

And under "App Home" you have to add a legacy bot user

@Half-Shot
Copy link
Contributor Author

#356 adds a note to the README, but we still need to fix this.

@Half-Shot Half-Shot added the bug label Feb 19, 2020
@Cadair
Copy link
Collaborator

Cadair commented Mar 1, 2020

They do now have support for name and avatar though: https://api.slack.com/scopes/chat:write.customize (thanks @tulir )

@Half-Shot
Copy link
Contributor Author

Ah awesome. Easy to fix then.

Jaykul added a commit to Jaykul/matrix-docker-ansible-deploy that referenced this issue Feb 17, 2021
@jaller94 jaller94 added T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems. and removed bug labels May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Defect Bugs, crashes, hangs, vulnerabilities, or other reported problems.
Projects
None yet
Development

No branches or pull requests

5 participants