diff options
| author | 2021-03-14 13:30:27 +0000 | |
|---|---|---|
| committer | 2021-03-14 13:30:27 +0000 | |
| commit | 84930e02690051d3e05fdb3c489f25159b25bf03 (patch) | |
| tree | 70dc3a91ef0060e6344b3bf19ebe0b7051ee9145 /bot/exts/utils/extensions.py | |
| parent | Use new help command ext (diff) | |
| parent | Use .gitattributes to normalise line endings on check-in (diff) | |
Merge remote-tracking branch 'origin/main' into Enforce-image-processing-concurrency
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/utils/extensions.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/bot/exts/utils/extensions.py b/bot/exts/utils/extensions.py index bb22c353..64e404d2 100644 --- a/bot/exts/utils/extensions.py +++ b/bot/exts/utils/extensions.py @@ -11,7 +11,7 @@ from bot import exts  from bot.bot import Bot  from bot.constants import Client, Emojis, MODERATION_ROLES, Roles  from bot.utils.checks import with_role_check -from bot.utils.extensions import EXTENSIONS, unqualify +from bot.utils.extensions import EXTENSIONS, invoke_help_command, unqualify  from bot.utils.pagination import LinePaginator  log = logging.getLogger(__name__) @@ -77,7 +77,7 @@ class Extensions(commands.Cog):      @group(name="extensions", aliases=("ext", "exts", "c", "cogs"), invoke_without_command=True)      async def extensions_group(self, ctx: Context) -> None:          """Load, unload, reload, and list loaded extensions.""" -        await ctx.send_help(ctx.command) +        await invoke_help_command(ctx)      @extensions_group.command(name="load", aliases=("l",))      async def load_command(self, ctx: Context, *extensions: Extension) -> None: @@ -87,7 +87,7 @@ class Extensions(commands.Cog):          If '\*' or '\*\*' is given as the name, all unloaded extensions will be loaded.          """  # noqa: W605          if not extensions: -            await ctx.send_help(ctx.command) +            await invoke_help_command(ctx)              return          if "*" in extensions or "**" in extensions: @@ -104,7 +104,7 @@ class Extensions(commands.Cog):          If '\*' or '\*\*' is given as the name, all loaded extensions will be unloaded.          """  # noqa: W605          if not extensions: -            await ctx.send_help(ctx.command) +            await invoke_help_command(ctx)              return          blacklisted = "\n".join(UNLOAD_BLACKLIST & set(extensions)) @@ -130,7 +130,7 @@ class Extensions(commands.Cog):          If '\*\*' is given as the name, all extensions, including unloaded ones, will be reloaded.          """  # noqa: W605          if not extensions: -            await ctx.send_help(ctx.command) +            await invoke_help_command(ctx)              return          if "**" in extensions: | 
