-
Notifications
You must be signed in to change notification settings - Fork 746
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
The JoinChannel
api call is fully deprecated for new Slack applications
#726
Comments
cc/ @lucassha |
At the bare minimum, this code change fixes things:
|
Did you need to change the log level to get the error? I am seeing my Slack trigger fail silently on v0.16.0 but it is definitely getting the event from the gateway |
@shimmerjs I don't think so, but it couldn't hurt. I am pretty sure that we at least got a warning that the call was deprecated. However, if your Slack app is new then this is almost certainly your issue. We are running a fork at the moment to work around it while we are testing. |
@spkane - Would you like to help do a testing with the change? I can give you RC images. |
@whynowy Yes. I'd be happy to give it a test. |
Describe the bug
Slack has deprecated the channels.join api call and suggests to use conversations.join instead. API calls now return with
method_deprecated
forJoinChannel
when you are using a Slack app created after June 10th (or so).Slack API links:
https://api.slack.com/methods/channels.join
https://api.slack.com/methods/conversations.join
Code:
argo-events/sensors/triggers/slack/slack.go
Line 115 in 693e210
To Reproduce
Expected behavior
Environment (please complete the following information):
Additional context
JoinConversation
is already written in the Slack package: https://github.com/slack-go/slack/blob/c664c83937182df61c6532cff2569ad50ec6b117/conversation.go#L536JoinCoversation requires a channel id instead of channel name. This is different then the current call which expects a name. For backwards compatibility it would make sense to still expect a name and then lookup the ID and pass it to JoinConversation.
Note:
github.com/slack-go/slack
is the new community fork ofgithub.com/nlopes/slack
and is most likely what should be used going forward.The text was updated successfully, but these errors were encountered: