This commit is contained in:
Noah committed 2021-12-04 20:58:19 -06:00
1 parent 6b01d0c8fe
commit adedfadd92
1 file changed
+6 -4
+6 -4
View File
@@ -26,14 +26,13 @@ module.exports = new Command({
async run(interaction) {
let SupportStaff = interaction.guild.roles.cache.find(
(SupportTeam) =>
SupportTeam.name === supportbot.Staff || SupportTeam.id === supportbot.Staff
SupportTeam.name === supportbot.Staff ||
SupportTeam.id === supportbot.Staff
);
let Admins = interaction.guild.roles.cache.find(
(AdminUser) =>
AdminUser.name === supportbot.Admin || AdminUser.id === supportbot.Admin
);
if (!SupportStaff || !Admins)
return interaction.reply(
@@ -73,7 +72,10 @@ module.exports = new Command({
.setColor(supportbot.EmbedColour)
.setFooter(supportbot.EmbedFooter, interaction.user.displayAvatarURL());
if (interaction.member.roles.cache.has(SupportStaff.id) || interaction.member.roles.cache.has(Admins.id)) {
if (
interaction.member.roles.cache.has(SupportStaff.id) ||
interaction.member.roles.cache.has(Admins.id)
) {
HelpEmbed1.addFields({
name: "🔐 Staff Commands\n",
value: `${staffCommands}\n`,