google / chatbase-node

Quickly integrate your Node.js chatbot with Chatbase Analytics
Apache License 2.0
78 stars 24 forks source link

Allow a boolean parameter to `setAsHandled` #7

Open michaelmior opened 7 years ago

michaelmior commented 7 years ago

It would be nice if setAsHandled could take a boolean (default true for backwards compatibility) that would allow it to behave as setAsNotHandled. This is especially helpful when building messages using message sets since it can avoid storing a reference to the message just to conditionally call this later.