Continuation of this.
Now that this is working fine, I've run into another issue. I'm now trying to get a value from a field from a specific document [which shares the same id as the user running the command], however when the command is run it A) pulls from the first document, rather than the one that shares the id with the user, and B) only outputs something like this - {'_id': 012345678987654321, 'inv': {'inv1': 'N/A'}}.
My code:
if conn.mydb.mycol.count_documents({ '_id': userID }):
inventory1 = conn.mydb.mycol.find_one({}, {'inv': {'inv1':1}, '_id' : userID})
await ctx.send(inventory1)
How could I go about A) pulling it from the correct document and B) setting the inv1 value as a variable to then be output? Any help is once again appreciated.