Updating waiting list embed

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-08-29 12:18:35 +02:00
parent ed3bc79253
commit 4f1759d8bf
2 changed files with 10 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ module.exports = {
await interaction.deferReply({ ephemeral: true });
const user = interaction.user;
const message = interaction.message;
const embed = message.embeds[0];
const accepted = await waitinglist.find()
@@ -50,12 +51,16 @@ module.exports = {
title: embed.title,
description: embed.description,
color: embed.color,
footer: embed.footer,
footer: {
text: "Last updated by " + user.username,
icon_url: user.avatarURL(),
},
thumbnail: embed.thumbnail,
fields: fields,
timestamp: new Date(),
}],
});
await interaction.editReply({ content: 'Updated the waiting list', ephemeral: true });
}
}
}