From e67ce7cd53be6e63eb51e081a85ed90c1019f70e Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sat, 13 Jan 2024 00:51:35 +0500 Subject: [PATCH] should fix birthdays (oopsie daisy) --- helpers/birthdays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/birthdays.js b/helpers/birthdays.js index 227b6328..6ccb5e6c 100644 --- a/helpers/birthdays.js +++ b/helpers/birthdays.js @@ -11,7 +11,7 @@ module.exports.init = async function (client) { const guildData = await client.findOrCreateGuild(guild.id); if (guildData.plugins.birthdays) { - const channel = client.channels.cache.get(guildData.plugins.birthdays) || await client.channels.fetch(guildData.plugins.birthdays), + const channel = guild.channels.cache.get(guildData.plugins.birthdays) || await guild.channels.fetch(guildData.plugins.birthdays), date = new Date(), currentDay = date.getDate(), currentMonth = date.getMonth(),