@userinfo.error
async def userinfo_error(self, ctx, error):
    if isinstance(error, commands.BadArgument):
        em = discord.Embed(title=f'<:fail:761292267360485378> Userinfo Error', color=ctx.author.color)
        em.add_field(name=f'Reason:', value=f'Arguments were of the wrong data type!')
        em.add_field(name='Args', value='```diff\n+ imp userinfo <user>\n- imp userinfo e\n```')
        em.set_thumbnail(url=ctx.author.avatar_url)
        em.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url)
        (await ctx.send(embed=em))
@userinfo.error
async def userinfo_error(self, ctx, error):
    if isinstance(error, commands.BadArgument):
        em = discord.Embed(title=f'<:fail:761292267360485378> Userinfo Error', color=ctx.author.color)
        em.add_field(name=f'Reason:', value=f'Arguments were of the wrong data type!')
        em.add_field(name='Args', value='```diff\n+ imp userinfo <user>\n- imp userinfo e\n```')
        em.set_thumbnail(url=ctx.author.avatar_url)
        em.set_author(name=ctx.author.name, icon_url=ctx.author.avatar_url)
        (await ctx.send(embed=em))