Change the deprecated options

This commit is contained in:
supositware 2022-06-17 12:30:20 +02:00
parent 2c5dbdf038
commit d500902813
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ export default {
.setTitle(response.data.children[i].data.title) .setTitle(response.data.children[i].data.title)
.setDescription(response.data.children[i].data.selftext) .setDescription(response.data.children[i].data.selftext)
.setURL('https://reddit.com' + response.data.children[i].data.permalink) .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.editReply({ embeds: [redditEmbed] });
interaction.followUp(response.data.children[i].data.url); interaction.followUp(response.data.children[i].data.url);

View file

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