aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/extensions.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-03-12 20:01:24 -0500
committerGravatar ToxicKidz <[email protected]>2021-03-12 20:01:24 -0500
commitccf7d118eb2dea996b10bf0a4cfca977c452f636 (patch)
treec5e93c250b8b1a10f915042b5f5a8a284d1f274c /bot/utils/extensions.py
parentmake utility invoke_help_command function (diff)
Make flake8 happy.
Diffstat (limited to 'bot/utils/extensions.py')
-rw-r--r--bot/utils/extensions.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/bot/utils/extensions.py b/bot/utils/extensions.py
index 56f6dd00..afc57383 100644
--- a/bot/utils/extensions.py
+++ b/bot/utils/extensions.py
@@ -1,10 +1,10 @@
+from discord.ext.commands import Context
import importlib
import inspect
import pkgutil
from typing import Iterator, NoReturn
from bot import exts
-from discord.ext.commands import Context
def unqualify(name: str) -> str:
@@ -33,10 +33,7 @@ def walk_extensions() -> Iterator[str]:
async def invoke_help_command(ctx: Context, *commands: str) -> None:
- """Invoke the help command, and will use the default help command
- if the help exten is not loaded.
- """
-
+ """Invoke the help command or default help command if help extensions is not loaded."""
if 'bot.exts.evergreen.help' in ctx.bot.extensions:
help_command = ctx.bot.get_command('help')
await ctx.invoke(help_command, *commands)