Skip to content
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

Extension fixes #817

Merged
merged 7 commits into from
Jan 21, 2022
Merged

Extension fixes #817

merged 7 commits into from
Jan 21, 2022

Conversation

plun1331
Copy link
Member

@plun1331 plun1331 commented Jan 19, 2022

Summary

Fixes issues with unloading extensions:

  • Raising AttributeError when an extension was unloaded on discord.Bot
  • Raising KeyError when an extension with a command was unloaded before the bot was ready

Also fixes some other small issue with the behavior of remove_application_command not matching the docstring.

Changes made could be considered breaking changes, however, I don't believe these attributes are used very often externally, or that they should.

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • If type: ignore comments were used, a comment is also left explaining why
  • This PR fixes an issue.
  • This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, typehinting, examples, ...)

@Lulalaby Lulalaby enabled auto-merge (squash) January 19, 2022 02:45
Fixes the docstring and changes method to match documented behavior
auto-merge was automatically disabled January 19, 2022 02:48

Head branch was pushed to by a user without write access

@Lulalaby Lulalaby added the bug Something isn't working label Jan 19, 2022
@Lulalaby Lulalaby added this to the v2.0 milestone Jan 19, 2022
Fix docstring
@Lulalaby Lulalaby merged commit a9f6bd5 into Pycord-Development:master Jan 21, 2022
@rtk-rnjn rtk-rnjn mentioned this pull request Jan 21, 2022
3 tasks
krittick added a commit that referenced this pull request Jan 22, 2022
Revert #817 due to high-severity prefix command errors introduced by its changes
VincentRPS pushed a commit to VincentRPS/pycord that referenced this pull request Jan 22, 2022
VincentRPS pushed a commit to VincentRPS/pycord that referenced this pull request Jan 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants