pycord
pycord copied to clipboard
Slashcommandgroup decorator
Summary
The decorator should replace the function with the command group
What is the feature request for?
The core library
The Problem
from discord import Cog, SlashCommandGroup
class Example(Cog):
channel = SlashCommandGroup("channel", "Example") # Current way
test = channel.create_subgroup("test", "Test Description")
The Ideal Solution
from discord import Cog, slash_command_group
class Example(Cog):
@slash_command_group() #optional name & description override
def channel(self): # Better way
"Example"
@slash_command_group(parent=channel)
def test(self):
"Test Description"
The Current Solution
No response
Additional Context
No response
How is this helpful? The parent Slash Command Group cannot have any callback if there are children.
i just think it will be easier
This will be over complicated