mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
doesnt on empty list
This commit is contained in:
@@ -10,16 +10,18 @@ import utils from 'utils/utils.ts';
|
|||||||
let guildsJoined: EmbedField[] = [];
|
let guildsJoined: EmbedField[] = [];
|
||||||
|
|
||||||
const sendGuildJoinedBatch = () => {
|
const sendGuildJoinedBatch = () => {
|
||||||
sendMessage(config.logChannel, {
|
if (guildsJoined.length) {
|
||||||
embeds: [
|
sendMessage(config.logChannel, {
|
||||||
{
|
embeds: [
|
||||||
title: 'Guild Joined!',
|
{
|
||||||
color: infoColor1,
|
title: 'Guild Joined!',
|
||||||
fields: guildsJoined,
|
color: infoColor1,
|
||||||
},
|
fields: guildsJoined,
|
||||||
],
|
},
|
||||||
}).catch((e: Error) => utils.commonLoggers.messageSendError('guildCreate.ts:21', 'Join Guild', e));
|
],
|
||||||
guildsJoined = [];
|
}).catch((e: Error) => utils.commonLoggers.messageSendError('guildCreate.ts:21', 'Join Guild', e));
|
||||||
|
guildsJoined = [];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user