Ok, so here's some context. Basically, i'm making a discord bot and im using mongoose to store user data, like how much gold they have in their bank, but I've tried looking at tutorials and copying code(we're all guilty of it) but nothing seems to work. Here's my code:
const user = db.collection.insertOne({
_id: mongoose.Types.ObjectId,
guild: msg.guild.id,
gold: 0,
})