Skip to content

Conversation

@Robin5605
Copy link
Contributor

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

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.
@netlify
Copy link

netlify bot commented Aug 15, 2022

Deploy Preview for pydis-static ready!

Name Link
🔨 Latest commit 0ff39f6
🔍 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.

@coveralls
Copy link

coveralls commented Aug 15, 2022

Coverage Status

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

@jchristgit jchristgit self-assigned this Oct 19, 2022
Copy link
Member

@jchristgit jchristgit left a comment

Choose a reason for hiding this comment

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

This looks good, but I think we should be using four-space indents here, shouldn't we?

Uses 4 spaces for a tab rather than two, as is convention
@Robin5605 Robin5605 requested a review from jchristgit October 20, 2022 02:08
@Xithrius Xithrius added priority: 3 - low Low Priority type: enhancement Changes or improvements to existing features s: needs review Author is waiting for someone to review and approve area: frontend Related to site content and user interaction type: feature New feature or request priority: 2 - normal Normal Priority and removed priority: 3 - low Low Priority type: enhancement Changes or improvements to existing features labels Oct 26, 2022
@Xithrius Xithrius enabled auto-merge November 23, 2022 20:16
@Xithrius Xithrius merged commit 6364dfd into python-discord:main Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: frontend Related to site content and user interaction priority: 2 - normal Normal Priority s: needs review Author is waiting for someone to review and approve type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants