You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this sample was updated a couple months back when the v4 rewrite of the docs were made, but only the event signature was changed (the body of the event stayed the same). Therein, the name of the event's parameter changed, but the name the rest of the event's code referenced was still the old name.
I've submitted a PR (#665) to fix this so others don't run into this issue. Thanks!
Description
Describe your issue here.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
@slack/client
version: 4.8.0node version: v11.1.0
OS version(s):
Steps to reproduce:
message = event
right below rtm.on('message', (event) => { and it worked.Expected result:
Program shouldn't crash.
Actual result:
Program crashed with ReferenceError: message is not defined
at if ((message.subtype && message.subtype === 'bot_message') ||
The text was updated successfully, but these errors were encountered: