mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28: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)
|
@commands.group(name="command", pass_context=True)
|
||||||
@checks.is_owner()
|
@checks.is_owner()
|
||||||
async def command_disabler(self, ctx):
|
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:
|
if ctx.invoked_subcommand is None:
|
||||||
await send_cmd_help(ctx)
|
await send_cmd_help(ctx)
|
||||||
if self.disabled_commands:
|
if self.disabled_commands:
|
||||||
@ -299,7 +301,7 @@ class Owner:
|
|||||||
|
|
||||||
@command_disabler.command()
|
@command_disabler.command()
|
||||||
async def disable(self, *, command):
|
async def disable(self, *, command):
|
||||||
"""Disable commands/subcommands"""
|
"""Disables commands/subcommands"""
|
||||||
comm_obj = await self.get_command(command)
|
comm_obj = await self.get_command(command)
|
||||||
if comm_obj is KeyError:
|
if comm_obj is KeyError:
|
||||||
await self.bot.say("That command doesn't seem to exist.")
|
await self.bot.say("That command doesn't seem to exist.")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user