Change the deprecated options

slash
supositware 2 years ago
parent 2c5dbdf038
commit d500902813

@ -32,7 +32,7 @@ export default {
.setTitle(response.data.children[i].data.title)
.setDescription(response.data.children[i].data.selftext)
.setURL('https://reddit.com' + response.data.children[i].data.permalink)
.setFooter(`/r/${response.data.children[i].data.subreddit} | ⬆ ${response.data.children[i].data.ups} 🗨 ${response.data.children[i].data.num_comments}`);
.setFooter({ text: `/r/${response.data.children[i].data.subreddit} | ⬆ ${response.data.children[i].data.ups} 🗨 ${response.data.children[i].data.num_comments}` });
interaction.editReply({ embeds: [redditEmbed] });
interaction.followUp(response.data.children[i].data.url);

@ -92,8 +92,8 @@ async function download(url, interaction) {
let format = 'bestvideo*+bestaudio/best';
const Embed = new MessageEmbed()
.setColor(interaction.member ? interaction.member.displayHexColor : 'NAVY')
.setAuthor(`Downloaded by ${interaction.member.displayName}`, interaction.member.displayAvatarURL(), url)
.setFooter(`You can get the original video by clicking on the "Downloaded by ${interaction.member.displayName}" message!`);
.setAuthor({ text: `Downloaded by ${interaction.member.displayName}`, iconURL: interaction.member.displayAvatarURL(), url: url })
.setFooter({ text: `You can get the original video by clicking on the "Downloaded by ${interaction.member.displayName}" message!` });
if (interaction.customId === 'downloadQuality') {
format = interaction.values[0];

Loading…
Cancel
Save