1
1
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:
Ean Milligan
2025-05-03 23:22:59 -04:00
parent 1ea2f64341
commit ede1562f33

View File

@@ -10,6 +10,7 @@ import utils from 'utils/utils.ts';
let guildsJoined: EmbedField[] = []; let guildsJoined: EmbedField[] = [];
const sendGuildJoinedBatch = () => { const sendGuildJoinedBatch = () => {
if (guildsJoined.length) {
sendMessage(config.logChannel, { sendMessage(config.logChannel, {
embeds: [ embeds: [
{ {
@@ -20,6 +21,7 @@ const sendGuildJoinedBatch = () => {
], ],
}).catch((e: Error) => utils.commonLoggers.messageSendError('guildCreate.ts:21', 'Join Guild', e)); }).catch((e: Error) => utils.commonLoggers.messageSendError('guildCreate.ts:21', 'Join Guild', e));
guildsJoined = []; guildsJoined = [];
}
}; };
setInterval(() => { setInterval(() => {