From d57cc7145dc86817295156b9381c04013564db6a Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 18 Jun 2024 17:34:47 +0500 Subject: [PATCH] don't need to check twice --- helpers/birthdays.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers/birthdays.js b/helpers/birthdays.js index 2dd86502..f4bceb3c 100644 --- a/helpers/birthdays.js +++ b/helpers/birthdays.js @@ -10,7 +10,7 @@ module.exports.init = async client => { const guildData = await client.getGuildData(guild.id); const channel = guildData.plugins.birthdays ? await client.channels.fetch(guildData.plugins.birthdays) : null; - if (guildData.plugins.birthdays && channel) { + if (channel) { const date = new Date(), currentDay = date.getDate(), currentMonth = date.getMonth() + 1, @@ -70,7 +70,7 @@ module.exports.run = async client => { const guildData = await client.getGuildData(guild.id); const channel = guildData.plugins.birthdays ? await client.channels.fetch(guildData.plugins.birthdays) : null; - if (guildData.plugins.birthdays && channel) { + if (channel) { const date = new Date(), currentDay = date.getDate(), currentMonth = date.getMonth() + 1,