async def register_command(self, ctx):
    if (ctx.command is None):
        return
    command = ctx.command.qualified_name
    self.bot.command_stats[command] += 1
    message = ctx.message
    destination = None
    if (ctx.guild is None):
        destination = 'Private Message'
        guild_id = None
    else:
        destination = f'#{message.channel} ({message.guild})'
        guild_id = ctx.guild.id
    log.info(f'{message.created_at}: {message.author} in {destination}: {message.content}')
    async with self._batch_lock:
        self._data_batch.append({'guild': guild_id, 'channel': ctx.channel.id, 'author': ctx.author.id, 'used': message.created_at.isoformat(), 'prefix': ctx.prefix, 'command': command, 'failed': ctx.command_failed})
async def register_command(self, ctx):
    if (ctx.command is None):
        return
    command = ctx.command.qualified_name
    self.bot.command_stats[command] += 1
    message = ctx.message
    destination = None
    if (ctx.guild is None):
        destination = 'Private Message'
        guild_id = None
    else:
        destination = f'#{message.channel} ({message.guild})'
        guild_id = ctx.guild.id
    log.info(f'{message.created_at}: {message.author} in {destination}: {message.content}')
    async with self._batch_lock:
        self._data_batch.append({'guild': guild_id, 'channel': ctx.channel.id, 'author': ctx.author.id, 'used': message.created_at.isoformat(), 'prefix': ctx.prefix, 'command': command, 'failed': ctx.command_failed})