def aggregate_member_by_channels(self, member: KarmaMember):
    self._filter_query['guild_id'] = member.guild_id
    self._filter_query['member_id'] = member.member_id
    pipeline = [{'$unwind': '$karma'}, {'$match': self._filter_query}, {'$group': {'_id': {'member_id': '$member_id', 'channel_id': '$channel_id'}, 'karma': {'$sum': '$karma'}}}, {'$limit': profile()['channels']}, {'$sort': {'karma': (- 1)}}]
    doc_cursor = self._karma.aggregate(pipeline)
    return doc_cursor
def aggregate_member_by_channels(self, member: KarmaMember):
    self._filter_query['guild_id'] = member.guild_id
    self._filter_query['member_id'] = member.member_id
    pipeline = [{'$unwind': '$karma'}, {'$match': self._filter_query}, {'$group': {'_id': {'member_id': '$member_id', 'channel_id': '$channel_id'}, 'karma': {'$sum': '$karma'}}}, {'$limit': profile()['channels']}, {'$sort': {'karma': (- 1)}}]
    doc_cursor = self._karma.aggregate(pipeline)
    return doc_cursor