Browse Source

Fix capitalization on not a valid role

master
Abheek Dhawan 4 years ago
parent
commit
52cbfd74f3
  1. 2
      index.js

2
index.js

@ -125,7 +125,7 @@ async function roleRequest(message) {
const role = message.content.substring(13).toLowerCase(); const role = message.content.substring(13).toLowerCase();
const possibleRoles = ['spec', 'spectator', 'reader', 'writer']; const possibleRoles = ['spec', 'spectator', 'reader', 'writer'];
if (possibleRoles.indexOf(role) === -1) { if (possibleRoles.indexOf(role) === -1) {
message.reply("Not a valid role"); message.reply("not a valid role!");
return; return;
} }
const verificationMessage = message.channel.send(`<@&826508679636844574>, <@${message.author.id}> would like the **${role}** role. Are they worthy?`); const verificationMessage = message.channel.send(`<@&826508679636844574>, <@${message.author.id}> would like the **${role}** role. Are they worthy?`);

Loading…
Cancel
Save