Prepare for user applciation

Slash-V14
Supositware 3 weeks ago
parent 2a8356d219
commit 7d1151e6ce

@ -124,8 +124,14 @@ export default {
}; };
async function download(url, interaction, originalInteraction, format = undefined, description = false) { async function download(url, interaction, originalInteraction, format = undefined, description = false) {
let embedColour = 'Navy';
if (interaction.member) {
if (interaction.member.displayHexColor) {
embedColour = interaction.member.displayHexColor;
}
}
const Embed = new EmbedBuilder() const Embed = new EmbedBuilder()
.setColor(interaction.member ? interaction.member.displayHexColor : 'Navy') .setColor(embedColour)
.setAuthor({ name: `Downloaded by ${interaction.user.username}`, iconURL: interaction.user.displayAvatarURL(), url: url }) .setAuthor({ name: `Downloaded by ${interaction.user.username}`, iconURL: interaction.user.displayAvatarURL(), url: url })
.setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.user.username}" message!` }); .setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.user.username}" message!` });

Loading…
Cancel
Save