Skip to content

How to make group parent / subgroup work with app commands? #7811

Answered by leirn
leirn asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for your feedback. It is not always easy to make a minimal reproductible code without making some mistakes compare to the real code we have.

I followed your advice, remove all redundancies and shadowing. Unfortunatly, the result is the same.

I have now two groups:
/test
/test2
and one command in each :
/test test_cmd
/test test2 test2_cmd

Only the first command is shown in Discord. /test test2 test2_cmd is still not declared.

Here is the new code, hopefully without any mistakes this time.

import asyncio
import discord
from config import BOT_TOKEN
from utils.config import GUILD_ID
from discord.ext import commands
from discord import Interaction
from discord.app_commands import Group

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Rapptz
Comment options

Answer selected by leirn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants