async def on_error(self, event, *args, **kwargs):
    e = discord.Embed(title='Event Error', colour=10692946)
    e.add_field(name='Event', value=event)
    e.description = f'''```py
{traceback.format_exc()}
```'''
    e.timestamp = datetime.datetime.utcnow()
    args_str = ['```py']
    for (index, arg) in enumerate(args):
        args_str.append(f'[{index}]: {arg!r}')
    args_str.append('```')
    e.add_field(name='Args', value='\n'.join(args_str), inline=False)
    hook = self.get_cog('Stats').webhook
    try:
        (await hook.send(embed=e))
    except:
        pass
async def on_error(self, event, *args, **kwargs):
    e = discord.Embed(title='Event Error', colour=10692946)
    e.add_field(name='Event', value=event)
    e.description = f'```py
{traceback.format_exc()}
```'
    e.timestamp = datetime.datetime.utcnow()
    args_str = ['```py']
    for (index, arg) in enumerate(args):
        args_str.append(f'[{index}]: {arg!r}')
    args_str.append('```')
    e.add_field(name='Args', value='\n'.join(args_str), inline=False)
    hook = self.get_cog('Stats').webhook
    try:
        (await hook.send(embed=e))
    except:
        pass