-
Notifications
You must be signed in to change notification settings - Fork 119
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
feat: prevent incorrect signal usage #488
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #488 +/- ##
==========================================
- Coverage 46.51% 46.31% -0.21%
==========================================
Files 19 19
Lines 5615 5640 +25
Branches 226 227 +1
==========================================
Hits 2612 2612
- Misses 3000 3025 +25
Partials 3 3
☔ View full report in Codecov by Sentry. |
you may want to use a method on 'ctx.api' instead. | ||
|
||
If you want to prevent such mistakes in the future, \ | ||
consider using TypeScript. https://www.typescriptlang.org/`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good try 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope it will help someone
In https://t.me/grammyjs/168114 and so many other times, people who do not use TS (and who do not read docs) use the context shortcuts and other methods incorrectly. This PQ attempt to explain to them how to fix their code.