Discordpy performs conversion when running an interaction. For example ID: 01234567890 will be converted to some_member. If the resource doesn't exist or type conversion fails, disord raises app_commands.TransformerError.
This change address the bot level error handling for TransformerError so as to send embed to command author.
Checklist
[x] This PR makes changes to the code
[x] I have tested my changes locally and they work as expected.
[x] I have ensured that the code is free of linting errors and warnings.
[x] I have added any necessary comments or explanations to the code.
[x] I have updated the documentation (if applicable) to reflect the changes.
[ ] This PR fixes an issue.
[x] This PR adds something new
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed)
[ ] This PR is not a code change (e.g. documentation, README, ...)
Additional Context
Earlier:
After these changes:
Review Notes
Please review the error content message. Modify message content if necessary.
Error handling for transformer error
Description
Discordpy performs conversion when running an interaction. For example ID:
01234567890
will be converted tosome_member
. If the resource doesn't exist or type conversion fails, disord raisesapp_commands.TransformerError
. This change address the bot level error handling forTransformerError
so as to send embed to command author.Checklist
Additional Context
Earlier:
After these changes:
Review Notes
Please review the error content message. Modify message content if necessary.