diff --git a/src/context.ts b/src/context.ts index 030d2b6..0f4ed35 100644 --- a/src/context.ts +++ b/src/context.ts @@ -23,6 +23,7 @@ export default class Context implements IContext { public payload: {} public message: string public session: Session + public originalUtterance: string public eventEmitter: EventEmitterInterface public command?: ICommand @@ -53,6 +54,7 @@ export default class Context implements IContext { this.userId = req.session.user_id this.payload = req.request.payload this.message = req.request.command + this.originalUtterance = req.request.original_utterance this.session = session diff --git a/src/types/context.d.ts b/src/types/context.d.ts index 7a6b451..1241bc7 100644 --- a/src/types/context.d.ts +++ b/src/types/context.d.ts @@ -11,6 +11,7 @@ export interface IContext { payload: {} message: string session: {} + originalUtterance: string eventEmitter: EventEmitterInterface // command?: Command