Prettier
This commit is contained in:
1 parent
6b01d0c8fe
commit
adedfadd92
1 file changed
+8
-6
+8
-6
@@ -26,20 +26,19 @@ module.exports = new Command({
|
|||||||
|
|
||||||
async run(interaction) {
|
async run(interaction) {
|
||||||
let SupportStaff = interaction.guild.roles.cache.find(
|
let SupportStaff = interaction.guild.roles.cache.find(
|
||||||
|
|
||||||
(SupportTeam) =>
|
(SupportTeam) =>
|
||||||
SupportTeam.name === supportbot.Staff || SupportTeam.id === supportbot.Staff
|
SupportTeam.name === supportbot.Staff ||
|
||||||
|
SupportTeam.id === supportbot.Staff
|
||||||
);
|
);
|
||||||
let Admins = interaction.guild.roles.cache.find(
|
let Admins = interaction.guild.roles.cache.find(
|
||||||
(AdminUser) =>
|
(AdminUser) =>
|
||||||
AdminUser.name === supportbot.Admin || AdminUser.id === supportbot.Admin
|
AdminUser.name === supportbot.Admin || AdminUser.id === supportbot.Admin
|
||||||
|
|
||||||
);
|
);
|
||||||
if (!SupportStaff || !Admins)
|
if (!SupportStaff || !Admins)
|
||||||
return interaction.reply(
|
return interaction.reply(
|
||||||
"Some roles seem to be missing!\nPlease check for errors when starting the bot."
|
"Some roles seem to be missing!\nPlease check for errors when starting the bot."
|
||||||
);
|
);
|
||||||
|
|
||||||
let botCommands = "";
|
let botCommands = "";
|
||||||
botCommands += `**/${cmdconfig.HelpCommand}** ${cmdconfig.HelpCommandDesc}\n`;
|
botCommands += `**/${cmdconfig.HelpCommand}** ${cmdconfig.HelpCommandDesc}\n`;
|
||||||
botCommands += `**/${cmdconfig.InfoCommand}** ${cmdconfig.InfoCommandDesc}\n`;
|
botCommands += `**/${cmdconfig.InfoCommand}** ${cmdconfig.InfoCommandDesc}\n`;
|
||||||
@@ -73,7 +72,10 @@ module.exports = new Command({
|
|||||||
.setColor(supportbot.EmbedColour)
|
.setColor(supportbot.EmbedColour)
|
||||||
.setFooter(supportbot.EmbedFooter, interaction.user.displayAvatarURL());
|
.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({
|
HelpEmbed1.addFields({
|
||||||
name: "🔐 Staff Commands\n",
|
name: "🔐 Staff Commands\n",
|
||||||
value: `${staffCommands}\n`,
|
value: `${staffCommands}\n`,
|
||||||
@@ -93,4 +95,4 @@ module.exports = new Command({
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user