def upsert_karma_member(self, member: KarmaMember, inc: bool) -> None:
    self._channel_query['guild_id'] = member.guild_id
    self._channel_query['member_id'] = member.member_id
    self._channel_query['channel_id'] = member.channel_id
    self._channel_query['message_id'] = member.message_id
    if inc:
        self._karma.update_one(filter=self._channel_query, update=self._increase_karma, upsert=True)
    else:
        self._karma.delete_one(filter=self._channel_query)
def upsert_karma_member(self, member: KarmaMember, inc: bool) -> None:
    self._channel_query['guild_id'] = member.guild_id
    self._channel_query['member_id'] = member.member_id
    self._channel_query['channel_id'] = member.channel_id
    self._channel_query['message_id'] = member.message_id
    if inc:
        self._karma.update_one(filter=self._channel_query, update=self._increase_karma, upsert=True)
    else:
        self._karma.delete_one(filter=self._channel_query)