pwease work

This commit is contained in:
Jonny_Bro (Nikita) 2024-04-27 18:47:08 +05:00
parent 9b4b150643
commit e6f239894f
Signed by: jonny_bro
GPG key ID: 3F1ECC04147E9BD8

View file

@ -10,7 +10,7 @@ module.exports.init = async client => {
const guildData = await client.findOrCreateGuild(guild.id); const guildData = await client.findOrCreateGuild(guild.id);
if (guildData.plugins.birthdays) { if (guildData.plugins.birthdays) {
const channel = guild.channels.cache.get(guildData.plugins.birthdays), const channel = await guild.channels.fetch(guildData.plugins.birthdays),
date = new Date(), date = new Date(),
currentDay = date.getDate(), currentDay = date.getDate(),
currentMonth = date.getMonth() + 1, currentMonth = date.getMonth() + 1,
@ -68,7 +68,7 @@ module.exports.run = async client => {
const guildData = await client.findOrCreateGuild(guild.id); const guildData = await client.findOrCreateGuild(guild.id);
if (guildData.plugins.birthdays) { if (guildData.plugins.birthdays) {
const channel = guild.channels.cache.get(guildData.plugins.birthdays), const channel = await guild.channels.fetch(guildData.plugins.birthdays),
date = new Date(), date = new Date(),
currentDay = date.getDate(), currentDay = date.getDate(),
currentMonth = date.getMonth() + 1, currentMonth = date.getMonth() + 1,