pwease work

This commit is contained in:
Jonny_Bro (Nikita) 2024-04-27 18:46:18 +05:00
parent 09d57aef11
commit b15aad7d6b
No known key found for this signature in database
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,