Skip to content

Send command help for BadUnionArgument errors#1434

Merged
Senjan21 merged 2 commits into
python-discord:masterfrom
Numerlor:sendhelp
Mar 4, 2021
Merged

Send command help for BadUnionArgument errors#1434
Senjan21 merged 2 commits into
python-discord:masterfrom
Numerlor:sendhelp

Conversation

@Numerlor
Copy link
Copy Markdown
Contributor

Currently the bot only sends the error embed when a BadUnionArgument or ArgumentParsingError occurs, unlike all the other handled exceptions which send the help for the command.
The PR adds sending the help under the BadUnionArgument error.
For ArgumentParsingError I've decided to only close the coroutine, as the error fails on the user's formatting and occurs regardless of the user passing in the expected args or not

@Xithrius Xithrius added a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 2 - normal Normal Priority t: bug Something isn't working labels Feb 25, 2021
Copy link
Copy Markdown
Contributor

@Senjan21 Senjan21 left a comment

Choose a reason for hiding this comment

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

Looks and sounds good! Thanks.

Copy link
Copy Markdown
Contributor

@Shivansh-007 Shivansh-007 left a comment

Choose a reason for hiding this comment

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

Thanks! Looks Good To Me!

@Senjan21 Senjan21 merged commit b34da23 into python-discord:master Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: backend Related to internal functionality and utilities (error_handler, logging, security, utils and core) p: 2 - normal Normal Priority t: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants