1
0
Fork 0
mirror of synced 2024-05-05 21:22:24 +12:00

Catch cannot paginate errors

This commit is contained in:
Dan Hess 2020-11-19 13:49:42 -06:00
parent 6d65710cfe
commit 7ce7d66c48

View file

@ -53,7 +53,7 @@ class Miscellaneous(commands.Cog):
@utils.can_run(send_messages=True)
async def help(self, ctx, *, command: str = None):
"""Shows help about a command or the bot"""
try:
if command is None:
p = await utils.HelpPaginator.from_bot(ctx)
else:
@ -68,6 +68,10 @@ class Miscellaneous(commands.Cog):
p = await utils.HelpPaginator.from_cog(ctx, entity)
await p.paginate()
except utils.CannotPaginate:
await ctx.send(
"I need embed links permissions in order to do this command :("
)
@commands.command()
@utils.can_run(send_messages=True)