Browse Source

Use countDocuments as count is deprecated

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
28b3cb5835
  1. 4
      bot/awesomescibo.js

4
bot/awesomescibo.js

@ -494,8 +494,8 @@ async function userRounds(message) {
} }
async function hits(message) { async function hits(message) {
let totalCount = await generatedRound.count({}); let totalCount = await generatedRound.countDocuments({});
let userCount = await generatedRound.count({ requestedBy: message.author.id }); let userCount = await generatedRound.countDocuments({ requestedBy: message.author.id });
message.channel.send(`Total Hits: ${totalCount}\nYour Hits: ${userCount}`); message.channel.send(`Total Hits: ${totalCount}\nYour Hits: ${userCount}`);
} }

Loading…
Cancel
Save