mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-22 10:47:58 -05:00
docstring semantics
This commit is contained in:
@@ -1380,7 +1380,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
async def load(self, ctx: commands.Context, *cogs: str):
|
async def load(self, ctx: commands.Context, *cogs: str):
|
||||||
"""Loads packages from the local paths and installed cogs.
|
"""Loads packages from the local paths and installed cogs.
|
||||||
|
|
||||||
See available packages with `[p]cogs`.
|
See packages available to load with `[p]cogs`.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
- `[p]load general` - Loads the `general` cog.
|
- `[p]load general` - Loads the `general` cog.
|
||||||
@@ -1500,7 +1500,17 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
|||||||
@commands.command()
|
@commands.command()
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def unload(self, ctx: commands.Context, *cogs: str):
|
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:
|
if not cogs:
|
||||||
return await ctx.send_help()
|
return await ctx.send_help()
|
||||||
cogs = tuple(map(lambda cog: cog.rstrip(","), cogs))
|
cogs = tuple(map(lambda cog: cog.rstrip(","), cogs))
|
||||||
|
|||||||
Reference in New Issue
Block a user