Revert "Added extremely basic multi-role support"

This reverts commit 1c226e8f7e.
This commit is contained in:
Isaac (eartharoid)
2020-09-20 22:01:10 +01:00
parent 1c226e8f7e
commit 585be0e7d5
11 changed files with 15 additions and 32 deletions

View File

@@ -34,13 +34,13 @@ module.exports = {
let channel = r.message.channel;
const supportRole = channel.guild.roles.cache.get(config.staff_roles[0]);
const supportRole = channel.guild.roles.cache.get(config.staff_role);
if (!supportRole)
return channel.send(
new MessageEmbed()
.setColor(config.err_colour)
.setTitle(':x: **Error**')
.setDescription(`${config.name} has not been set up correctly. Could not find a 'support team' role with the id \`${config.staff_roles[0]}\``)
.setDescription(`${config.name} has not been set up correctly. Could not find a 'support team' role with the id \`${config.staff_role}\``)
.setFooter(channel.guild.name, channel.guild.iconURL())
);
@@ -144,7 +144,7 @@ module.exports = {
let ping;
switch (config.tickets.ping) {
case 'staff':
ping = `<@&${config.staff_roles[0]}>,\n`;
ping = `<@&${config.staff_role}>,\n`;
break;
case false:
ping = '';