Merge branch 'dev' into dev

This commit is contained in:
SypherRed authored and GitHub committed 2021-11-28 14:55:48 +01:00
commit 4ba5621a4d
20 files changed
+464 -493

No files matched your search

+4 -1
View File
@@ -26,17 +26,20 @@ module.exports = new Command({
async run(interaction) {
let SupportStaff = interaction.guild.roles.cache.find(
(SupportTeam) =>
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(
"Some roles seem to be missing!\nPlease check for errors when starting the bot."
);
let botCommands = "";
botCommands += `**/${cmdconfig.HelpCommand}** ${cmdconfig.HelpCommandDesc}\n`;
botCommands += `**/${cmdconfig.InfoCommand}** ${cmdconfig.InfoCommandDesc}\n`;
@@ -90,4 +93,4 @@ module.exports = new Command({
});
}
},
});
});