diff --git a/SlashCommands/info/info.js b/SlashCommands/info/info.js index 69e04a3..9ba16f5 100644 --- a/SlashCommands/info/info.js +++ b/SlashCommands/info/info.js @@ -48,12 +48,7 @@ module.exports = { { name: 'Uptime: ', value: `\`\`\`\n${BOTUptime}\n\`\`\``, inline: true }, ) .setTimestamp() - .setFooter( - `Requested by ${interaction.user.tag}`, - interaction.user.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() }); interaction.followUp({ embeds: [InfoEmbed] }); }) diff --git a/SlashCommands/util/about.js b/SlashCommands/util/about.js index 4436df4..9672767 100644 --- a/SlashCommands/util/about.js +++ b/SlashCommands/util/about.js @@ -34,12 +34,7 @@ module.exports = { .setColor('GREEN') .setTitle('About Us') .setDescription('This bot is using a template made by CaldeiraG and Brayd ( OnlyTunes ) If you like using the template or like this bot feel free to check us out by using the buttons below!') - .setFooter( - `Requested by ${interaction.user.tag}`, - interaction.user.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() }); await interaction.followUp({ ephemeral: true, embeds: [embed], components: [row] }); diff --git a/SlashCommands/util/invite.js b/SlashCommands/util/invite.js index 7c7cd9d..7c23f52 100644 --- a/SlashCommands/util/invite.js +++ b/SlashCommands/util/invite.js @@ -24,12 +24,7 @@ module.exports = { .setTitle('Invite the bot') .setURL(inviteURL) .setDescription('Use the button below to add the bot!') - .setFooter( - `Requested by ${interaction.user.tag}`, - interaction.user.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() }); await interaction.followUp({ ephemeral: true, embeds: [embed], components: [row] }); } diff --git a/SlashCommands/util/license.js b/SlashCommands/util/license.js index 66db40b..1fee8ce 100644 --- a/SlashCommands/util/license.js +++ b/SlashCommands/util/license.js @@ -29,12 +29,7 @@ module.exports = { .setColor('GREEN') .setTitle('About Us') .setDescription('This bot is licensed under the MIT License. This allows users to:\n- Use Commercially\n- Freely Modify\n- Freely Distribute\n- Use privately\n For more info use the buttons below to read it in its full extent!') - .setFooter( - `Requested by ${interaction.user.tag}`, - interaction.user.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: interaction.user.username, iconURL: interaction.user.avatarURL() }); await interaction.followUp({ ephemeral: true, embeds: [embed], components: [row] }); diff --git a/commands/info/info.js b/commands/info/info.js index 57d8256..41832a1 100644 --- a/commands/info/info.js +++ b/commands/info/info.js @@ -48,12 +48,7 @@ module.exports = { { name: 'Uptime: ', value: `\`\`\`\n${BOTUptime}\n\`\`\``, inline: true }, ) .setTimestamp() - .setFooter( - `Requested by ${message.author.tag}`, - message.author.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() }); message.channel.send({ embeds: [InfoEmbed] }); }) diff --git a/commands/util/about.js b/commands/util/about.js index 81c893b..3493a1c 100644 --- a/commands/util/about.js +++ b/commands/util/about.js @@ -34,12 +34,7 @@ module.exports = { .setColor('GREEN') .setTitle('About Us') .setDescription('This bot is using a template made by CaldeiraG and Brayd ( OnlyTunes ) If you like using the template or like this bot feel free to check us out by using the buttons below!') - .setFooter( - `Requested by ${message.author.tag}`, - message.author.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() }); await message.channel.send({ ephemeral: true, embeds: [embed], components: [row] }); diff --git a/commands/util/invite.js b/commands/util/invite.js index 1422626..485e604 100644 --- a/commands/util/invite.js +++ b/commands/util/invite.js @@ -24,12 +24,7 @@ module.exports = { .setTitle('Invite Me') .setURL(inviteURL) .setDescription('Use the button provided below to add the bot to your server!') - .setFooter( - `Requested by ${message.author.tag}`, - message.author.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() }); await message.channel.send({ ephemeral: true, embeds: [embed], components: [row] }); diff --git a/commands/util/license.js b/commands/util/license.js index dc630d3..e364acf 100644 --- a/commands/util/license.js +++ b/commands/util/license.js @@ -29,12 +29,7 @@ module.exports = { .setColor('GREEN') .setTitle('About Us') .setDescription('This bot is licensed under the MIT License. This allows users to:\n- Use Commercially\n- Freely Modify\n- Freely Distribute\n- Use privately\n For more info use the buttons below to read it in its full extent!') - .setFooter( - `Requested by ${message.author.tag}`, - message.author.displayAvatarURL({ - dynamic: true, - }) - ); + .setAuthor({ name: message.author.username, iconURL: message.author.avatarURL() }); await message.reply({ ephemeral: true, embeds: [embed], components: [row] }); diff --git a/package.json b/package.json index daccd5f..e172e72 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bot-template", - "version": "1.3.0", + "version": "1.4.0", "description": "A simple DJS bot template", "main": "index.js", "scripts": { @@ -30,7 +30,7 @@ "license": "MIT", "dependencies": { "chalk": "^4.1.2", - "discord.js": "^13.3.1", + "discord.js": "^13.6.0", "dotenv": "^10.0.0", "figlet": "^1.5.2", "glob": "^7.1.7",