diff --git a/commands/slash/applications/quotes.js b/commands/slash/applications/quotes.js index 43f4d06..1e17dc6 100644 --- a/commands/slash/applications/quotes.js +++ b/commands/slash/applications/quotes.js @@ -57,7 +57,7 @@ async function quotesAdd(interaction) { messageID: messageID, channelID: channelID, guildID: guildID, - by: msgData.author.id, + userID: msgData.author.id, count: 0 } }, { upsert: true }) @@ -164,7 +164,7 @@ async function quotesRandom(interaction) { if (user) { rdm = await quotesColl.aggregate([ { - $match: { by: user.id }, + $match: { userID: user.id }, }, { $sample: { size: 1 } }