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/game.py | |
| parent | change ctx.send_help to ctx.invoke(help_command) (diff) | |
make utility invoke_help_command function
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/game.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/bot/exts/evergreen/game.py b/bot/exts/evergreen/game.py index d49a8858..ab4cae77 100644 --- a/bot/exts/evergreen/game.py +++ b/bot/exts/evergreen/game.py @@ -16,6 +16,7 @@ from bot.bot import Bot  from bot.constants import STAFF_ROLES, Tokens  from bot.utils.decorators import with_role  from bot.utils.pagination import ImagePaginator, LinePaginator +from bot.utils.extensions import invoke_help_command  # Base URL of IGDB API  BASE_URL = "https://api.igdb.com/v4" @@ -234,8 +235,7 @@ class Games(Cog):          """          # When user didn't specified genre, send help message          if genre is None: -            help_command = self.bot.get_command("help") -            await ctx.invoke(help_command, ctx.command.name) +            await invoke_help_command(ctx, ctx.command.name)              return          # Capitalize genre for check | 
