Add listener decorator to events

This commit is contained in:
Dustin Pianalto 2019-12-16 16:03:52 -09:00
parent d1660e4ca3
commit 920866e699

View File

@ -14,6 +14,7 @@ class CommandEvents(commands.Cog):
self.bot = bot self.bot = bot
# noinspection PyMethodMayBeStatic # noinspection PyMethodMayBeStatic
@commands.Cog.listener()
async def on_command_error(self, ctx, error): async def on_command_error(self, ctx, error):
pag = Paginator(ctx.bot, embed=True) pag = Paginator(ctx.bot, embed=True)
pag.set_embed_meta(color=self.bot.error_color) pag.set_embed_meta(color=self.bot.error_color)