should fix birthdays (oopsie daisy)

This commit is contained in:
Jonny_Bro (Nikita) 2024-01-13 00:51:35 +05:00
parent e5737c4f95
commit e67ce7cd53
No known key found for this signature in database
GPG key ID: 28B0D27F8DD5A4C9

View file

@ -11,7 +11,7 @@ module.exports.init = async function (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 = 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(), date = new Date(),
currentDay = date.getDate(), currentDay = date.getDate(),
currentMonth = date.getMonth(), currentMonth = date.getMonth(),