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
|
# noinspection PyMethodMayBeStatic
|
||||||
async def on_command_error(self, ctx, error):
|
async def on_command_error(self, ctx, error):
|
||||||
pag = utils.Paginator()
|
pag = utils.Paginator(ctx.bot)
|
||||||
import traceback
|
import traceback
|
||||||
if ctx.channel.id == 418452585683484680 and type(error) == commands.errors.CommandNotFound:
|
if ctx.channel.id == 418452585683484680 and type(error) == commands.errors.CommandNotFound:
|
||||||
return
|
return
|
||||||
|
|||||||
@ -229,6 +229,7 @@ class Paginator:
|
|||||||
for field in page:
|
for field in page:
|
||||||
em.add_field(name=field['name'], value=field['value'], inline=field['inline'])
|
em.add_field(name=field['name'], value=field['value'], inline=field['inline'])
|
||||||
_pages[i] = em
|
_pages[i] = em
|
||||||
|
|
||||||
return _pages
|
return _pages
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user