Fixed paginator in error handling so I can see what I am breaking ;)
This commit is contained in:
parent
8746cd0bcf
commit
95fce3f636
@ -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
|
||||
|
||||
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user