From c6926a48306571c45a62ebe057e42673090298e3 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Fri, 15 Jul 2016 17:59:15 -0500 Subject: [PATCH] Added descriptions to the perms commands --- cogs/mod.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/mod.py b/cogs/mod.py index 2acf0ad..6fca4fb 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -72,6 +72,8 @@ class Mod: @commands.group(pass_context=True, invoke_without_command=True) async def perms(self, ctx, *command: str): + """This command can be used to print the current allowed permissions on a specific command + This supports groups as well as subcommands; pass no argument to print a list of available permissions""" if command is None: await self.bot.say("Valid permissions are: ```{}```".format("\n".join("{}".format(i) for i in valid_perms))) return @@ -98,6 +100,8 @@ class Mod: @perms.command(name="add", aliases=["setup,create"], pass_context=True) @checks.customPermsOrRole("manage_server") async def add_perms(self, ctx, *msg: str): + """Setups up custom permissions on the provided command + Format must be 'perms add '""" command = " ".join(msg[0:len(msg)-1]) permissions = msg[len(msg)-1] msg = msg[0:len(msg)-1]