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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: decorator-based autocompleters #521

Merged
merged 1 commit into from May 9, 2022

Conversation

Sharp-Eyes
Copy link
Member

Summary

Decorator-based autocompleters failed because of a bug introduced in #501 (my bad 馃槶) because the autocomplete function would be copied but not updated with the new slash command instance. To fix this, we now manually overwrite them inside _ensure_assignment_on_copy.

Checklist

  • If code changes were made, then they have been tested
    • I have updated the documentation to reflect the changes
    • I have formatted the code properly by running task lint
    • I have type-checked the code by running task pyright
  • 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, ...)

@shiftinv shiftinv added bug Something isn't working s: needs review Issue/PR is awaiting reviews labels May 9, 2022
@onerandomusername onerandomusername merged commit 2f93645 into DisnakeDev:master May 9, 2022
@onerandomusername onerandomusername removed the s: needs review Issue/PR is awaiting reviews label May 20, 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.

None yet

3 participants