-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Migrate !source
to /source
(app_commands)
#2446
Migrate !source
to /source
(app_commands)
#2446
Conversation
In error embed for `/tag` there is no tittle
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.
Looks good overall, just small things that need fixing
Also fixed the typo for `SourceTransformer`
758a994
to
59b39ac
Compare
Also fixed variable naming
+ Edited embed title to `Prefix-based commad` for non app_commands + Made the source command guild only + Allowed `app_commands.Group` in the transformer
+ Remove redundant return statement in transformer + Remove error handling in the command itself + Used qualified name of the command for the debug_message in error handler + Changed `appcommand_invoke_error` to `app_command_invoke_error` for incrementing error stats
+ unittest for returning None when the error is internally handled + unittest for TransformerError + uniitest for CommandInvokeError + unittest for general AppCommandError
I have also added unit tests for error handler so someone in future doesn't break them, or if they they will get notified. |
Hey @Ibrahim2750mi, I'm sorry this took a while. The second & third options point to the same command group.
|
This PR is now up for grabs, as discussed here. |
I'd like to be assigned. |
@Canttuchdiz Hello, will you be continuing updates to this PR? |
Closes #2022
Previously the error prompted because isinstance was returning False when an TagIdentifier object was compared to itself. Instead of checking that, we check if the source object issubclass of commands.Cog and pass the TagIdentifier to else.
Closes #2424
![2023-03-06_18-15_1](https://user-images.githubusercontent.com/74553450/223119986-b72ce20f-7f80-4b18-87b7-04b759b5c2a9.png)
![2023-03-06_18-16](https://user-images.githubusercontent.com/74553450/223120025-c444daec-c657-4fac-8621-68245515531b.png)
![2023-03-06_18-39](https://user-images.githubusercontent.com/74553450/223120072-b6d04fd6-8483-42bd-a028-74b0d78e3cd4.png)
Screenshots: