This commit is contained in:
Jonny_Bro (Nikita) 2024-04-30 10:45:07 +05:00
parent 2ed1602c09
commit fb4fe700a6
Signed by: jonny_bro
GPG key ID: 3F1ECC04147E9BD8
2 changed files with 4 additions and 5 deletions

View file

@ -55,7 +55,6 @@ class Checkjar extends BaseCommand {
jarTransactions.length = 10;
jarTransactions.forEach(t => {
// TODO
const time = moment.unix(t.time);
embed.data.fields.push([

View file

@ -9,8 +9,8 @@ module.exports.init = async client => {
client.guilds.cache.forEach(async guild => {
const guildData = await client.findOrCreateGuild(guild.id);
if (guildData.plugins.birthdays) {
const channel = await guild.channels.fetch(guildData.plugins.birthdays),
if (guildData.plugins.birthdays && client.channels.cache.get(guildData.plugins.birthdays)) {
const channel = client.channels.cache.get(guildData.plugins.birthdays),
date = new Date(),
currentDay = date.getDate(),
currentMonth = date.getMonth() + 1,
@ -67,8 +67,8 @@ module.exports.run = async client => {
client.guilds.cache.forEach(async guild => {
const guildData = await client.findOrCreateGuild(guild.id);
if (guildData.plugins.birthdays) {
const channel = await guild.channels.fetch(guildData.plugins.birthdays),
if (guildData.plugins.birthdays && client.channels.cache.get(guildData.plugins.birthdays)) {
const channel = client.channels.cache.get(guildData.plugins.birthdays),
date = new Date(),
currentDay = date.getDate(),
currentMonth = date.getMonth() + 1,