Prettier
This commit is contained in:
1 parent
6b01d0c8fe
commit
adedfadd92
1 file changed
+6
-4
+6
-4
@@ -26,14 +26,13 @@ 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(
|
||||||
@@ -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`,
|
||||||
|
|||||||
Reference in new issue
Block a user