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

feat: prevent incorrect signal usage #488

Merged
merged 4 commits into from
Oct 8, 2023
Merged

feat: prevent incorrect signal usage #488

merged 4 commits into from
Oct 8, 2023

Conversation

KnorpelSenf
Copy link
Member

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.

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (fb58202) 46.51% compared to head (e63b5d1) 46.31%.

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              
Files Coverage Δ
src/core/client.ts 51.62% <0.00%> (-6.80%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/core/client.ts Outdated Show resolved Hide resolved
@KnorpelSenf KnorpelSenf merged commit 3afa0f4 into main Oct 8, 2023
8 checks passed
@KnorpelSenf KnorpelSenf deleted the sig-not-func branch October 8, 2023 08:21
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/`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good try 😀

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants