#maually invoke subcommands

1 messages · Page 1 of 1 (latest)

sacred fossil
#

I have a command group that is suppoed to handle projects.

Until now the syntax was !project <subcommand> <project> [params], but I think that this is a little awkward.

I would like the syntax to be something like this:
!project <project> <subcommand> [params].

I guess that I need to code something in the command group function. to manually invoke the subcommands...
Or is there any other obvieous way to do this?

pulsar mountain
sacred fossil
#

But the api docs don't tell me if I even can call commands manually

sacred fossil
#

Dunno, why I was not thinking of that earlier, but is there a way to add fields to the context, so it is passed to the subcommands?

I might remember dimmly, that I did something like this before, but I don't recall if it was using discord.py, or if it was with discord.js

sacred fossil
compact pollenBOT