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,