From e6f239894f3ebf01aff0141261572575b8f9162c Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 27 Apr 2024 18:47:08 +0500 Subject: [PATCH] pwease work --- helpers/birthdays.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/birthdays.js b/helpers/birthdays.js index 41e8f7d5..61eba481 100644 --- a/helpers/birthdays.js +++ b/helpers/birthdays.js @@ -10,7 +10,7 @@ module.exports.init = async client => { const guildData = await client.findOrCreateGuild(guild.id); 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(), currentDay = date.getDate(), currentMonth = date.getMonth() + 1, @@ -68,7 +68,7 @@ module.exports.run = async client => { const guildData = await client.findOrCreateGuild(guild.id); 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(), currentDay = date.getDate(), currentMonth = date.getMonth() + 1,