diff options
| author | 2021-03-12 19:17:39 -0500 | |
|---|---|---|
| committer | 2021-03-12 19:17:39 -0500 | |
| commit | cc72d484115a8acebf0fafe8bb332817168d3acd (patch) | |
| tree | fd5ac32633bf9eac9ec0f1f8428014c48d9e5101 /bot/exts/evergreen/emoji.py | |
| parent | change ctx.send_help to ctx.invoke(help_command) (diff) | |
make utility invoke_help_command function
Diffstat (limited to 'bot/exts/evergreen/emoji.py')
| -rw-r--r-- | bot/exts/evergreen/emoji.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/emoji.py b/bot/exts/evergreen/emoji.py index 40bf83e8..042e539d 100644 --- a/bot/exts/evergreen/emoji.py +++ b/bot/exts/evergreen/emoji.py @@ -11,6 +11,7 @@ from discord.ext import commands from bot.constants import Colours, ERROR_REPLIES from bot.utils.pagination import LinePaginator from bot.utils.time import time_since +from bot.utils.extensions import invoke_help_command log = logging.getLogger(__name__) @@ -75,8 +76,7 @@ class Emojis(commands.Cog): if emoji is not None: await ctx.invoke(self.info_command, emoji) else: - help_command = self.bot.get_command("help") - await ctx.invoke(help_command, ctx.command.name) + await invoke_help_command(ctx, ctx.command.name) @emoji_group.command(name="count", aliases=("c",)) async def count_command(self, ctx: commands.Context, *, category_query: str = None) -> None: |