mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-12-29 23:03:02 +05:00
pwease work
This commit is contained in:
parent
09d57aef11
commit
b15aad7d6b
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);
|
||||
|
||||
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(),
|
||||
currentDay = date.getDate(),
|
||||
currentMonth = date.getMonth() + 1,
|
||||
|
@ -68,7 +68,7 @@ module.exports.run = async client => {
|
|||
const guildData = await client.findOrCreateGuild(guild.id);
|
||||
|
||||
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(),
|
||||
currentDay = date.getDate(),
|
||||
currentMonth = date.getMonth() + 1,
|
||||
|
|
Loading…
Reference in a new issue