mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Docstrings fix
Third time's a charm
This commit is contained in:
@@ -287,7 +287,9 @@ class Owner:
|
||||
@commands.group(name="command", pass_context=True)
|
||||
@checks.is_owner()
|
||||
async def command_disabler(self, ctx):
|
||||
"""Disables/enables commands"""
|
||||
"""Disables/enables commands
|
||||
|
||||
With no subcommands returns the disabled commands list"""
|
||||
if ctx.invoked_subcommand is None:
|
||||
await send_cmd_help(ctx)
|
||||
if self.disabled_commands:
|
||||
@@ -299,7 +301,7 @@ class Owner:
|
||||
|
||||
@command_disabler.command()
|
||||
async def disable(self, *, command):
|
||||
"""Disable commands/subcommands"""
|
||||
"""Disables commands/subcommands"""
|
||||
comm_obj = await self.get_command(command)
|
||||
if comm_obj is KeyError:
|
||||
await self.bot.say("That command doesn't seem to exist.")
|
||||
|
||||
Reference in New Issue
Block a user