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 error for command with a leading slash #133

Merged
merged 1 commit into from
Dec 13, 2021

Conversation

glukki
Copy link
Contributor

@glukki glukki commented Dec 13, 2021

With composer.command('/start'), the expected error message is:
Do not include '/' when registering command handlers (use 'start' not '/start')
but instead I received
Do not include '/' when registering command handlers (use '/' not '/start')

With `composer.command('/start')`, the expected error message is:
```Do not include '/' when registering command handlers (use 'start' not '/start')```
but instead I received
```Do not include '/' when registering command handlers (use '/' not '/start')```
Copy link
Member

@KnorpelSenf KnorpelSenf left a comment

Choose a reason for hiding this comment

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

Nice catch, thanks for fixing it!

@KnorpelSenf
Copy link
Member

@all-contributors add @glukki for bug and code

@allcontributors
Copy link
Contributor

@KnorpelSenf

I've put up a pull request to add @glukki! 🎉

@KnorpelSenf KnorpelSenf merged commit 7ad99b6 into grammyjs:main Dec 13, 2021
@glukki glukki deleted the fix-command-with-slash-error branch December 13, 2021 21:00
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.

None yet

2 participants