mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
Фикс
This commit is contained in:
parent
2f30e020ca
commit
38c4ac94c9
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue