Fixed paginator in error handling so I can see what I am breaking ;)

This commit is contained in:
Dustin Pianalto 2018-06-07 18:59:57 -08:00
parent 8746cd0bcf
commit 95fce3f636
2 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class BotEvents:
# noinspection PyMethodMayBeStatic
async def on_command_error(self, ctx, error):
pag = utils.Paginator()
pag = utils.Paginator(ctx.bot)
import traceback
if ctx.channel.id == 418452585683484680 and type(error) == commands.errors.CommandNotFound:
return

View File

@ -229,6 +229,7 @@ class Paginator:
for field in page:
em.add_field(name=field['name'], value=field['value'], inline=field['inline'])
_pages[i] = em
return _pages
def __len__(self):