Add extra error checking to changelog

This commit is contained in:
baz 2025-03-23 23:04:27 +00:00
parent 36da8d37af
commit 1c3bf63291

View File

@ -20,6 +20,9 @@ module.exports = {
if (!userDatabaseEntry) return interaction.editReply({ content: `Issue checking registration with "${user.username}".`, ephemeral: true });
const changelogEntries = await getChangelog(userDatabaseEntry.id, '2024-01-01', `${new Date().getFullYear()}-12-31`);
if (changelogEntries.length == 0) return interaction.editReply({ content: `${user.username} has no changelog entries.`, ephemeral: true });
let desc = '';
for (let i = 0; i < changelogEntries.length; i++) {