This commit is contained in:
JonnyBro 2022-09-27 12:32:32 +05:00
parent 2f30e020ca
commit 38c4ac94c9

View file

@ -23,7 +23,7 @@ module.exports.init = async function (client) {
client.usersData.find({ birthdate: { $gt: 1 } }) client.usersData.find({ birthdate: { $gt: 1 } })
.then(async users => { .then(async users => {
for (const user of users) { for (const user of users) {
if (guild.members.find(m => m.id === user.id)) { if (guild.members.cache.find(m => m.id === user.id)) {
const userDate = new Date(user.birthdate); const userDate = new Date(user.birthdate);
const day = userDate.getDate(); const day = userDate.getDate();
const month = userDate.getMonth(); const month = userDate.getMonth();