fix setFooter deprecation issues
This commit is contained in:
3 files changed
+5
-5
No files matched your search
@@ -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
@@ -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] });
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user