#Import SlashCommandGroup from main into cogs
1 messages · Page 1 of 1 (latest)
thanks
do you have a code example
and i mean not the github repo
there is on the github repo
sure
or is this wrong
what is wrong ?
you said there is no repo
i did not say that
i say there is example on the github repo
oh sry
but i dont understand these examples
well i cant really do anything
okay
like here my command :
@subcommand("mod")
@slash_command()
async def ban(self, ctx):
...
no in a cog
german = discord.SlashCommandGroup("german")
league = german.create_subgroup("league")
@league.command(
name="table",
description="Shows you the current table of a german league."
)
so like this
@subcommand("german")
@discord.slash_command(
name="team",
description="Shows informations about the selected Club."
)
and in a other cog like this
yeah
but now he makes not the description of the command
?