From 38c4ac94c9fd5e921c279ebfe5c28e60d8b6e425 Mon Sep 17 00:00:00 2001 From: JonnyBro Date: Tue, 27 Sep 2022 12:32:32 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/birthdays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/birthdays.js b/helpers/birthdays.js index 1057ccc2..4970f556 100644 --- a/helpers/birthdays.js +++ b/helpers/birthdays.js @@ -23,7 +23,7 @@ module.exports.init = async function (client) { client.usersData.find({ birthdate: { $gt: 1 } }) .then(async 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 day = userDate.getDate(); const month = userDate.getMonth();