forked from Supositware/Haha-Yes
Prepare for user applciation
This commit is contained in:
parent
2a8356d219
commit
7d1151e6ce
1 changed files with 7 additions and 1 deletions
|
@ -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…
Reference in a new issue