fix setFooter deprecation issues

This commit is contained in:
SowinskiBraeden committed 2022-09-30 11:19:38 -07:00
1 parent 21811a18a9
commit fd811f30ab
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ module.exports = {
.addFields( .addFields(
{ name: `There are currently ${guild.server.allowedChannels.length} allowed channels.`, value: `Channels:${channels}`, inline: true }, { name: `There are currently ${guild.server.allowedChannels.length} allowed channels.`, value: `Channels:${channels}`, inline: true },
) )
.setFooter('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t') .setFooter({ text: 'LPS Website Support', iconURL: client.config.IconURL, proxyIconURL: 'https://discord.gg/jgUW656v2t' })
return interaction.send({ embeds: [channelsEmbed] }); return interaction.send({ embeds: [channelsEmbed] });
}, },
}, },
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = {
.addFields( .addFields(
{ name: `There are currently **${guild.server.allowedRoles.length}** allowed roles.`, value: `\`${roles}\``, inline: true }, { name: `There are currently **${guild.server.allowedRoles.length}** allowed roles.`, value: `\`${roles}\``, inline: true },
) )
.setFooter('LPS Website Support', client.config.IconURL, 'https://discord.gg/jgUW656v2t') .setFooter({ text: 'LPS Website Support', iconURL: client.config.IconURL, proxyIconURL: 'https://discord.gg/jgUW656v2t' })
return interaction.send({ embeds: [rolesEmbed] }); return interaction.send({ embeds: [rolesEmbed] });
}, },
}, },
+3 -3
View File
@@ -237,9 +237,9 @@ class LinesPoliceCadBot extends Client {
.setTitle("An error occured") .setTitle("An error occured")
.setColor("RED") .setColor("RED")
.setDescription(Error) .setDescription(Error)
.setFooter( .setFooter({
"If you think this as a bug, please report it in the support server!" text: "If you think this as a bug, please report it in the support server!"
); });
Channel.send(embed); Channel.send(embed);
} }