From 6dd9c055719d6f0b0eaf856e102510910586f00c Mon Sep 17 00:00:00 2001 From: bobloy Date: Mon, 30 Nov 2020 09:20:43 -0500 Subject: [PATCH] docstring semantics --- redbot/core/core_commands.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/redbot/core/core_commands.py b/redbot/core/core_commands.py index 5cb8d3727..29ddc0e8a 100644 --- a/redbot/core/core_commands.py +++ b/redbot/core/core_commands.py @@ -1380,7 +1380,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): async def load(self, ctx: commands.Context, *cogs: str): """Loads packages from the local paths and installed cogs. - See available packages with `[p]cogs`. + See packages available to load with `[p]cogs`. Examples: - `[p]load general` - Loads the `general` cog. @@ -1500,7 +1500,17 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic): @commands.command() @checks.is_owner() async def unload(self, ctx: commands.Context, *cogs: str): - """Unloads packages.""" + """Unloads packages. + + See packages available to unload with `[p]cogs`. + + Examples: + - `[p]load general` - Loads the `general` cog. + - `[p]load admin mod mutes` - Loads multiple cogs. + + **Arguments:** + + - `[cogs...]` Required to set to public. Not required to toggle back to private.""" if not cogs: return await ctx.send_help() cogs = tuple(map(lambda cog: cog.rstrip(","), cogs))