Skip to content

feat: Documents SlashCommandGroup.add_command - #3346

Merged
Paillat-dev merged 5 commits into
masterfrom
feat/document-group-add-command
Aug 14, 2026
Merged

feat: Documents SlashCommandGroup.add_command#3346
Paillat-dev merged 5 commits into
masterfrom
feat/document-group-add-command

Conversation

@Icebluewolf

@Icebluewolf Icebluewolf commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary

Documents the existing method SlashCommandGroup.add_command so that you do not need to use the decorator to create commands or subgroups. This also sets ApplicationCommand.parent in add_command instead of the various other methods.

No generative AI was used.

Side note: Is this how you are supposed to use SlashCommandGroup.subgroup?

@my_group.subgroup(description="Say hello to a user")
class hello2sub(SlashCommandGroup):
    pass

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.
  • I have read the Contributing Guidelines.
  • AI Usage has been disclosed.
    • If AI has been used, I understand fully what the code does

@Icebluewolf
Icebluewolf requested review from a team, Lumabots and NeloBlivion August 11, 2026 04:19
@Icebluewolf
Icebluewolf requested a review from a team as a code owner August 11, 2026 04:19
@Icebluewolf
Icebluewolf requested review from Lulalaby and removed request for a team August 11, 2026 04:19
@github-project-automation github-project-automation Bot moved this to Todo in Pycord Aug 11, 2026
@pycord-app

pycord-app Bot commented Aug 11, 2026

Copy link
Copy Markdown

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/3346/head:pr-3346
git checkout pr-3346

This pull request can be installed with:

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

@Icebluewolf
Icebluewolf requested a review from a team as a code owner August 11, 2026 04:21
@Icebluewolf
Icebluewolf requested review from a team and JustaSqu1d August 11, 2026 04:21
@Icebluewolf Icebluewolf mentioned this pull request Aug 11, 2026
11 tasks
Lulalaby
Lulalaby previously approved these changes Aug 11, 2026
Comment thread CHANGELOG.md Outdated
@Paillat-dev Paillat-dev added this to the 2.9.0rc1 milestone Aug 11, 2026
Paillat-dev
Paillat-dev previously approved these changes Aug 11, 2026

@Paillat-dev Paillat-dev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@Paillat-dev
Paillat-dev enabled auto-merge (squash) August 11, 2026 13:58
@Paillat-dev
Paillat-dev requested a review from JustaSqu1d August 11, 2026 13:58
Comment thread CHANGELOG.md Outdated
Signed-off-by: Ice Wolfy <44532864+Icebluewolf@users.noreply.github.com>
@Paillat-dev
Paillat-dev disabled auto-merge August 14, 2026 16:57
@Paillat-dev
Paillat-dev merged commit 2d762d6 into master Aug 14, 2026
25 checks passed
@Paillat-dev
Paillat-dev deleted the feat/document-group-add-command branch August 14, 2026 16:57
@github-project-automation github-project-automation Bot moved this from Todo to Done in Pycord Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants