This adds the global flag to the onTaskHanldeOptions, so the user won't have to manually add this, in case the handler is not placed in a global Component. This is the example request from the docs:
As can be seen, a task comes in with a LaunchRequest, therefore should never be possible within a session. This is why I think it'd be easier to already include the global flag in the onTask function.
Types of Changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] My code follows the code style of this project
[x] My change requires a change to the documentation
Proposed Changes
This adds the
global
flag to theonTask
HanldeOptions
, so the user won't have to manually add this, in case the handler is not placed in a global Component. This is the example request from the docs:As can be seen, a task comes in with a
LaunchRequest
, therefore should never be possible within a session. This is why I think it'd be easier to already include theglobal
flag in theonTask
function.Types of Changes
Checklist