mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-23 13:44:59 +05:00
pwease work
This commit is contained in:
parent
9b4b150643
commit
e6f239894f
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue