Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have few questions about ext.commands.GroupCog and how to use it after reading its docs.
Since docs for it mentions, GroupCog represents/inherits from ext.commands.Cog that also doubles as a parent app_commands.Group, does it mean that it basically offers same functionality as hybrid group? For example, my group cog has 2 cmds:
[p]foo
and[p]bar
and with GroupCog (and defininggroup_name='test'
during subclassing), it creates slash cmds/test foo
and/test bar
too?1.1. or GroupCog is only usable for app commands only? no ext text commands support?
how does cmd signature look for cmd objects/functions inside GroupCog?
2.1. does cmds inside GroupCog have access to
ctx
or Context arg since it inherits from ext.commands.Cog I would assume it would?2.2. which of these would be valid cmd signature in this context?
or
I saw some tags in dpy server which used the 2nd example and it felt confusing that cmds inside GroupCog doesnt have access to
ctx
since GroupCog inherits from ext.commands.Cog? 🤔It would be great if example in docs for GroupCog can be expanded bit more if possible. 😅
Beta Was this translation helpful? Give feedback.
All reactions