Fix changelog command

This commit is contained in:
baz 2025-03-22 15:20:28 +00:00
parent 64e9fded12
commit 36da8d37af

View File

@ -19,7 +19,7 @@ module.exports = {
const userDatabaseEntry = await getUserRegistration(user);
if (!userDatabaseEntry) return interaction.editReply({ content: `Issue checking registration with "${user.username}".`, ephemeral: true });
const changelogEntries = await getChangelog(userDatabaseEntry.id);
const changelogEntries = await getChangelog(userDatabaseEntry.id, '2024-01-01', `${new Date().getFullYear()}-12-31`);
let desc = '';
for (let i = 0; i < changelogEntries.length; i++) {
@ -44,6 +44,8 @@ module.exports = {
}
}
console.log(changelogEntries);
const embed = new EmbedBuilder()
.setColor(0x6441a5)
.setThumbnail(user.avatarURL())