@commands.group(hidden=True, invoke_without_command=True)
@commands.is_owner()
async def command_history(self, ctx):
    'Command history.'
    query = 'SELECT\n                        CASE failed\n                            WHEN TRUE THEN command || \' [!]\'\n                            ELSE command\n                        END AS "command",\n                        to_char(used, \'Mon DD HH12:MI:SS AM\') AS "invoked",\n                        author_id,\n                        guild_id\n                   FROM commands\n                   ORDER BY used DESC\n                   LIMIT 15;\n                '
    (await self.tabulate_query(ctx, query))
Command history.
@commands.group(hidden=True, invoke_without_command=True)
@commands.is_owner()
async def command_history(self, ctx):
    
    query = 'SELECT\n                        CASE failed\n                            WHEN TRUE THEN command || \' [!]\'\n                            ELSE command\n                        END AS "command",\n                        to_char(used, \'Mon DD HH12:MI:SS AM\') AS "invoked",\n                        author_id,\n                        guild_id\n                   FROM commands\n                   ORDER BY used DESC\n                   LIMIT 15;\n                '
    (await self.tabulate_query(ctx, query))