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
Even through respond() is typed to accept a string argument, it will not post the body in the correct format for a simple message to be accepted by the platform. We may need to adjust the ExpressReceiver implementation to wrap the simple string in a JSON body with a text property.
As this is implemented, it might make sense to extract some sort of Receiver utilities file, which can assist with generating more Receiver implementations, which have more consistent behavior amongst them. This is an alternative to having a common base class which all implementations extend, and the base class provides this functionality.
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
@aoberoi I found a workaround! The importance of token isn't really clear in the docs, but if you pass token into respond, it succeeds. Here's an example:
Description
Even through
respond()
is typed to accept astring
argument, it will not post the body in the correct format for a simple message to be accepted by the platform. We may need to adjust theExpressReceiver
implementation to wrap the simple string in a JSON body with atext
property.As this is implemented, it might make sense to extract some sort of Receiver utilities file, which can assist with generating more
Receiver
implementations, which have more consistent behavior amongst them. This is an alternative to having a common base class which all implementations extend, and the base class provides this functionality.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:
package version: all
node version: all
OS version(s): all
Steps to reproduce:
respond('test');
Expected result:
Message posted in Slack
Actual result:
Nothing.
The text was updated successfully, but these errors were encountered: