@command_history.command(name='user', aliases=['member'])
@commands.is_owner()
async def command_history_user(self, ctx, user_id: int):
    'Command history for a user.'
    query = 'SELECT\n                        CASE failed\n                            WHEN TRUE THEN command || \' [!]\'\n                            ELSE command\n                        END AS "command",\n                        guild_id,\n                        used\n                   FROM commands\n                   WHERE author_id=$1\n                   ORDER BY used DESC\n                   LIMIT 20;\n                '
    (await self.tabulate_query(ctx, query, user_id))
Command history for a user.
@command_history.command(name='user', aliases=['member'])
@commands.is_owner()
async def command_history_user(self, ctx, user_id: int):
    
    query = 'SELECT\n                        CASE failed\n                            WHEN TRUE THEN command || \' [!]\'\n                            ELSE command\n                        END AS "command",\n                        guild_id,\n                        used\n                   FROM commands\n                   WHERE author_id=$1\n                   ORDER BY used DESC\n                   LIMIT 20;\n                '
    (await self.tabulate_query(ctx, query, user_id))