restore the look of the old download message
This commit is contained in:
parent
35370fab72
commit
2cebec4f8b
1 changed files with 7 additions and 13 deletions
|
@ -50,6 +50,13 @@ class DownloadCommand extends Command {
|
|||
fileName = `${message.author.id}_video`;
|
||||
}
|
||||
|
||||
|
||||
const Embed = new MessageEmbed()
|
||||
.setColor(message.member.displayHexColor)
|
||||
.setTitle(`Downloaded by ${message.author.username}`)
|
||||
.setURL(link)
|
||||
.setDescription(args.caption);
|
||||
|
||||
if (link.includes('http') || link.includes('www')) {
|
||||
let loadingmsg = await message.channel.send('Downloading <a:loadingmin:527579785212329984>');
|
||||
|
||||
|
@ -99,12 +106,6 @@ class DownloadCommand extends Command {
|
|||
message.delete();
|
||||
compressmsg.delete();
|
||||
|
||||
const Embed = new MessageEmbed()
|
||||
.setColor(message.member.displayHexColor)
|
||||
.setAuthor(`Downloaded by ${message.author.username}`, message.author.displayAvatarURL(), link)
|
||||
.setDescription(args.caption)
|
||||
.setFooter('You can get the original video by clicking on the "downloaded by" message!');
|
||||
|
||||
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}compressed.mp4`]})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
|
@ -116,13 +117,6 @@ class DownloadCommand extends Command {
|
|||
message.delete();
|
||||
loadingmsg.delete();
|
||||
|
||||
const Embed = new MessageEmbed()
|
||||
.setColor(message.member.displayHexColor)
|
||||
.setAuthor(`Downloaded by ${message.author.username}`, message.author.displayAvatarURL(), link)
|
||||
.setDescription(args.caption)
|
||||
.setFooter('You can get the original video by clicking on the "downloaded by" message!');
|
||||
|
||||
|
||||
return message.channel.send({embed: Embed, files: [`${os.tmpdir()}/${fileName}.mp4`]})
|
||||
.catch(err => {
|
||||
console.error(err);
|
||||
|
|
Loading…
Reference in a new issue