Open
Description
I am writing the handlers for Cancel and Stop, and I believe I should use shouldEndSession
to close the session properly.
In the docs, http://ask-sdk-node-typedoc.s3-website-us-east-1.amazonaws.com/classes/responsebuilder.html#shouldendsession, it would appear I can add this to a response like so...
return handlerInput.responseBuilder
.speak('Goodbye!')
.shouldEndSession(true)
.getResponse();
But, this results in the error shouldEndSession is not a function
There is an overwhelming lack of information about these wbuilt in intents, despite them being required for the most part.
Why am I getting this error, and how do I properly set shouldEndSession
to true?