Skip to content

Commit

Permalink
Fixes some minor typos and errors (SudhanPlayz#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferri authored Apr 16, 2022
1 parent dd899cc commit a056125
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions commands/slash/reload.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { MessageEmbed, Message } = require("discord.js");
const { MessageEmbed, message } = require("discord.js");
const SlashCommand = require("../../lib/SlashCommand");
const fs = require("fs");
const path = require("path");
Expand Down Expand Up @@ -52,9 +52,9 @@ const command = new SlashCommand()
new MessageEmbed()
.setColor(client.config.embedColor)
.setDescription(`Sucessfully Reloaded \`${totalCmds}\` Commands!`)
.setFooter(`${client.user.username} was reloaded by ${message.author}`)
.setTimestamp();
],
.setFooter({text: `${client.user.username} was reloaded by ${interaction.user.username}`})
.setTimestamp(),
], ephemeral: true
});
} catch (err) {
console.log(err);
Expand All @@ -65,7 +65,7 @@ const command = new SlashCommand()
.setDescription(
"An error has occured. For more details please check console."
),
],
], ephemeral: true
});
}
} else {
Expand All @@ -74,7 +74,7 @@ const command = new SlashCommand()
new MessageEmbed()
.setColor(client.config.embedColor)
.setDescription("You are not authorized to use this command!"),
],
], ephemeral: true
});
}
});
Expand Down

0 comments on commit a056125

Please sign in to comment.