fix setAuthor deprecation?

This commit is contained in:
SowinskiBraeden committed 2022-09-30 13:29:51 -07:00
1 parent 481f012d6a
commit f04f6ba211
6 files changed
+14 -13

No files matched your search

+2 -1
View File
@@ -27,6 +27,7 @@ module.exports = {
*/
run: async (client, interaction, args, { GuildDB }) => {
console.log(args)
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
}
@@ -56,7 +57,7 @@ module.exports = {
);
let embed = new EmbedBuilder()
.setAuthor(`Command: ${cmd.name}`, client.config.IconURL)
.setAuthor({ name: `Command: ${cmd.name}`, iconURL: client.config.IconURL })
.setDescription(cmd.description)
.setColor("GREEN")
.addFields({