collectIntent method

void collectIntent(
  1. BotIntent intent
)

Collect an intent into the collector.

  • {intent} is the intent instance to be collected.

You can collect as many intents as you want.

Implementation

void collectIntent(BotIntent intent) {
  _intents["${intent.bot}/${intent.name}"] = intent;
}