Skip to content

fix: 🧑‍💻 Add kwargs explicitly for app-command decorators#3119

Open
ToothyDev wants to merge 4 commits intoPycord-Development:masterfrom
ToothyDev:fix/command-decorator-typing
Open

fix: 🧑‍💻 Add kwargs explicitly for app-command decorators#3119
ToothyDev wants to merge 4 commits intoPycord-Development:masterfrom
ToothyDev:fix/command-decorator-typing

Conversation

@ToothyDev
Copy link
Contributor

Summary

This explicitly adds typed kwargs to the slash_command, user_command and message_command decorators as well as to the basic application_command decorator.

Information

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

Checklist

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

@pycord-app
Copy link

pycord-app bot commented Feb 21, 2026

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3119/head:pr-3119
git checkout pr-3119

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3119/head

Paillat-dev
Paillat-dev previously approved these changes Feb 28, 2026
Copy link
Member

@Paillat-dev Paillat-dev left a comment

Choose a reason for hiding this comment

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

Should do the trick for now

Copy link
Member

@Paillat-dev Paillat-dev left a comment

Choose a reason for hiding this comment

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

Should do the trick for now

Comment on lines +43 to +45
- Fixed the `slash_command`, `message_command` and `user_command` decorators to
explicitly list the accepted parameters, and have a return type.
([#3119](https://github.com/Pycord-Development/pycord/pull/3119))
Copy link
Member

Choose a reason for hiding this comment

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

I do not like the changelog entry. It's not descriptive enough about what it fixes. Just "how".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, it fixes them not being listed and having a return type. I copied this from an existing changelog entry so idk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants