diff --git a/changelog.d/customcom/1767.enhance.rst b/changelog.d/customcom/1767.enhance.rst new file mode 100644 index 000000000..003f5a039 --- /dev/null +++ b/changelog.d/customcom/1767.enhance.rst @@ -0,0 +1 @@ +The group command `[p]cc` create can now be used to create simple CCs without specifying "simple". diff --git a/redbot/cogs/customcom/customcom.py b/redbot/cogs/customcom/customcom.py index 12cb86ca9..355bbeb4c 100644 --- a/redbot/cogs/customcom/customcom.py +++ b/redbot/cogs/customcom/customcom.py @@ -204,15 +204,16 @@ class CustomCommands(commands.Cog): """Custom commands management.""" pass - @customcom.group(name="create", aliases=["add"]) + @customcom.group(name="create", aliases=["add"], invoke_without_command=True) @checks.mod_or_permissions(administrator=True) - async def cc_create(self, ctx: commands.Context): + async def cc_create(self, ctx: commands.Context, command: str.lower, *, text: str): """Create custom commands. + If a type is not specified, a simple CC will be created. CCs can be enhanced with arguments, see the guide [here](https://red-discordbot.readthedocs.io/en/v3-develop/cog_customcom.html). """ - pass + await ctx.invoke(self.cc_create_simple, command=command, text=text) @cc_create.command(name="random") @checks.mod_or_permissions(administrator=True)