mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Docstrings fix
Third time's a charm
This commit is contained in:
parent
c934dae7cf
commit
def2035f19
@ -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.")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user