-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Slack-Node use deprecated attributes when posting messages. #652
Comments
Hey, @trygvis thanks for putting that together. I will check and keep you updated. |
@trygvis Just sent a PR fixing this, will let you know when is released. Again, Thanks. |
Fix got released with n8n@0.71.0 |
The The as_user with user token works fine in 0.70.0. So, I suppose we should delete as_user from a request body only when it false. In this case, bot tokens and as_user with user tokens will be work. |
Describe the bug
The
as_user
flag for the "post message" request is deprecated and can't be included if the user is using bot tokens. If it is included this is returned from Slack:https://api.slack.com/methods/chat.postMessage#arg_as_user
To Reproduce
Try to send a message with Authentication=Access Token and use a Bot token.
Environment (please complete the following information):
Additional context
If I add
delete body.as_user
at line 456 of Slack.node.ts the message is posted as my bot user.A proper fix I think would be to remove the as_user entirely.
The text was updated successfully, but these errors were encountered: