We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ctx.match
It makes little sense to have a very ambiguous property ctx.match that narrows down its type in various different ways depending on the handler.
Instead, we should have different dedicated properties that get installed for each use case:
ctx.payload
ctx.args
The types for bot.hears etc need to be adjusted accordingly.
bot.hears
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It makes little sense to have a very ambiguous property
ctx.match
that narrows down its type in various different ways depending on the handler.Instead, we should have different dedicated properties that get installed for each use case:
ctx.match
for regexctx.payload
for stringsctx.args
for command argumentsThe types for
bot.hears
etc need to be adjusted accordingly.The text was updated successfully, but these errors were encountered: