site icon indicating copy to clipboard operation
site copied to clipboard

Migrate on_command_error pin

Open Robin5605 opened this issue 3 years ago • 2 comments

As part of the migration of the #discord-bots pinned content from discord to the site, this PR migrates the pin regarding on_command_error of the discord.py library "eating" (silencing) unhandled errors.

This PR also adds a few extra items, including:

  • General markdown improvements, formatting
  • Fixing a few inaccuracies (e.g generic commands.BagArgument has been changed to commands.MemberNotFound
  • An elif statement handling another error, showing users that they can handle any number of errors they want to
  • Showing how to use specific properties of the errors commands.MemberNotFound.argument, commands.MissingRequiredArgument.param
  • Implementing the on_command_error function with and without a bot subclass, as the function in itself does not do anything, and needs to be bound to the bot somehow

Robin5605 avatar Aug 15 '22 22:08 Robin5605

Deploy Preview for pydis-static ready!

Name Link
Latest commit 0ff39f6cef7d889cc2e14918d65ffaaf05efec6f
Latest deploy log https://app.netlify.com/sites/pydis-static/deploys/637e7fad2b0f4b0008e013b9
Deploy Preview https://deploy-preview-765--pydis-static.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Aug 15 '22 22:08 netlify[bot]

Coverage Status

Coverage remained the same at 100.0% when pulling 0ff39f6cef7d889cc2e14918d65ffaaf05efec6f on Robin5605:discordpy-error-handling into 4ce9f301a7c74e50f23cb2ddaf22536a4af31ac4 on python-discord:main.

coveralls avatar Aug 15 '22 22:08 coveralls