aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/movie.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-03-12 19:17:39 -0500
committerGravatar ToxicKidz <[email protected]>2021-03-12 19:17:39 -0500
commitcc72d484115a8acebf0fafe8bb332817168d3acd (patch)
treefd5ac32633bf9eac9ec0f1f8428014c48d9e5101 /bot/exts/evergreen/movie.py
parentchange ctx.send_help to ctx.invoke(help_command) (diff)
make utility invoke_help_command function
Diffstat (limited to 'bot/exts/evergreen/movie.py')
-rw-r--r--bot/exts/evergreen/movie.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/evergreen/movie.py b/bot/exts/evergreen/movie.py
index 238ab038..9aa3aea7 100644
--- a/bot/exts/evergreen/movie.py
+++ b/bot/exts/evergreen/movie.py
@@ -10,6 +10,7 @@ from discord.ext.commands import Bot, Cog, Context, group
from bot.constants import Tokens
from bot.utils.pagination import ImagePaginator
+from bot.utils.extensions import invoke_help_command
# Define base URL of TMDB
BASE_URL = "https://api.themoviedb.org/3/"
@@ -73,8 +74,7 @@ class Movie(Cog):
try:
result = await self.get_movies_list(self.http_session, MovieGenres[genre].value, 1)
except KeyError:
- help_command = self.bot.get_command("help")
- await ctx.invoke(help_command, ctx.command.name)
+ await invoke_help_command(ctx, ctx.command.name)
return
# Check if "results" is in result. If not, throw error.