Updating waiting list embed
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user