Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix signature of spawn method #1648

Merged
merged 3 commits into from
May 14, 2019
Merged

Fix signature of spawn method #1648

merged 3 commits into from
May 14, 2019

Conversation

Naktibalda
Copy link
Contributor

According to documentation at https://github.com/howdyai/botkit/blob/master/packages/docs/core.md#sending-alerts-and-scheduled-messages, config parameter of spawn() is optional.

However I got an error when compiling my bot:

src/actions.ts:117:42 - error TS2554: Expected 1 arguments, but got 0.
117                     const newBot = await bot.controller.spawn();
                                             ~~~~~~~~~~~~~~~~~~~~~~
  node_modules/botkit/lib/core.d.ts:502:11
    502     spawn(config: any): Promise<BotWorker>;
                  ~~~~~~~~~~~
    An argument for 'config' was not provided.

@benbrown benbrown added the 4.0.2 this issue will be addressed in 4.0.2 label May 9, 2019
@benbrown benbrown added this to the 4.0.2 milestone May 9, 2019
@benbrown benbrown merged commit 976d310 into howdyai:master May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.0.2 this issue will be addressed in 4.0.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants