pycord icon indicating copy to clipboard operation
pycord copied to clipboard

fix: :bug: Union type cannot be used in `ctx`.

Open Paillat-dev opened this issue 1 year ago • 0 comments

Summary

A command's ctx parameter could not be typed as a Union which was especially problematic when using bridge

Information

  • [x] This PR fixes an issue. fixes: #2378
  • [ ] 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, ...).

Checklist

  • [x] I have searched the open pull requests for duplicates.
  • [x] 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.
  • [x] I have updated the changelog to include these changes.

Paillat-dev avatar Oct 17 '24 11:10 Paillat-dev