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

Add missing **kwargs param to support non-explicit parameters in SlashCommandGroup (fixes issue introduced by #1127) #1132

Merged
merged 1 commit into from
Mar 7, 2022

Conversation

krittick
Copy link
Contributor

@krittick krittick commented Mar 7, 2022

Summary

#1127 fixed an issue by allowing keyword arguments to be accepted, but it also inadvertently removed the **kwargs parameter that is still needed for other variables in the class (e.g. check).

Specifically, this error is fixed by this PR:

TypeError: SlashCommandGroup.__init__() got an unexpected keyword argument 'checks'

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, ...)

@krittick krittick added bug Something isn't working priority: high High Priority bypass-review Bypasses reviews for urgent pull requests involving critical code or documentation fixes. Merge normally labels Mar 7, 2022
@krittick krittick added this to the v2.0 milestone Mar 7, 2022
@krittick krittick self-assigned this Mar 7, 2022
@krittick krittick merged commit 06a4b6e into Pycord-Development:master Mar 7, 2022
krittick added a commit that referenced this pull request Mar 7, 2022
… in `SlashCommandGroup` (fixes issue introduced by #1127) (#1132)"

This reverts commit 06a4b6e.
@krittick
Copy link
Contributor Author

krittick commented Mar 7, 2022

Yeah, and this PR didn't fix it properly because I missed that too. I reverted this already.

@Dorukyum
Copy link
Member

Dorukyum commented Mar 7, 2022

Yeah, and this PR didn't fix it properly because I missed that too. I reverted this already.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bypass-review Bypasses reviews for urgent pull requests involving critical code or documentation fixes. priority: high High Priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants