-
Notifications
You must be signed in to change notification settings - Fork 390
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
member_left_channel event not firing #1847
Comments
Hey @coleerikson, thanks for writing in! 👋 In my testing, the You've already done some solid troubleshooting, but there are a few more things we can check. You're right that the scopes of these two events match for public and private channels, and you've already subscribed to the If you could provide a snippet of your handler, I'd be happy to take a look! You can also check that you're receiving this event (even if you're not handling it) by toggling debug logging for your app. Hopefully, with this enabled, a WebSocket message with event information will be logged to your terminal after you leave a channel. If this isn't happening, you might consider checking the event subscriptions once more. Let me know if either of these solves the problem! If not, we can look into more ways to troubleshoot this! |
Thank you for your response @E-Zim. I have it working. 🙏 App side listeners and events were all good. Identical to your repo example. Thank you for sharing. Subscription/events/permissions were good too but just as a sanity check I remove/toggled them all off and back on again. (home router style 😎 ) I then saw |
Just writing in case it helps anyone else: |
Sorry if this isn't a proper issue/bug. I'm at a loss.
Reproducible in:
The Slack SDK version
"@slack/bolt": "^3.13.1",
Node.js runtime version
v16.17.1
OS info
Steps to reproduce:
I have a oauth enabled app running and functioning with all other events, message, commands... no problems.
Interestingly, I have the event
user_joined_channel
implemented and working as expected. However,user_left_channel
doesn't seem to work at all.ignoreSelf: false
set.user_left_channel
, again I have this working withuser_joined_channel
is_enabled: true
user_joined_channel
, removing it does nothing.left_channel
event, this works! However, the response doesn't give me the user that left the channel. Here's that event cb:Expected result:
The callback as outlined in the member_left_channel API docs:
{
"type": "member_left_channel",
"user": "W06GH7XHN",
"channel": "C0698JE0H",
"channel_type": "C",
"team": "T024BE7LD"
}
Actual result:
Nothing. No console logs, no error.
The text was updated successfully, but these errors were encountered: