Skip to content

hybrid (app) command groups with invoke_without_command don't work #10156

Open
@tjf1dev

Description

@tjf1dev

Summary

app commands from hybrid commands with invoke_without_command set to True don't work / show up

Reproduction Steps

  1. create a hybrid group with invoke_without_command=True and with_app_command=True
  2. sync the app command tree
  3. the group command does not show up in the slash command, but the prefixed command works fine.

Minimal Reproducible Code

@commands.hybrid_group(name="config", invoke_without_command=True, description="Configure the bot's config.",with_app_command=True)
@commands.has_guild_permissions(administrator=True)
    async def config(self, ctx):
        await ctx.reply(
            "this command works in prefixed commands, but doesn't show up in app commands."
            "for example: {prefix}config will work, but the slash command /config won't."
        )

Expected Results

i expected the group/command to work with app commands.

Actual Results

the app group/command does not work. doesn't show up in the list of slash commands. the prefixed command works normally.

Intents

discord.Intents().all()

System Information

- Python v3.10.12-final
- discord.py v2.4.0-final
- aiohttp v3.11.9
- system info: Linux 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed bugA bug report that needs triaging

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions