|
@ -124,6 +124,9 @@ async function roleRequest(message) { |
|
|
const writerRole = message.guild.roles.cache.get("826508727855087723"); |
|
|
const writerRole = message.guild.roles.cache.get("826508727855087723"); |
|
|
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 (message.channel.id !== "826904255012667452") { |
|
|
|
|
|
message.reply("wrong channel!") |
|
|
|
|
|
} |
|
|
if (possibleRoles.indexOf(role) === -1) { |
|
|
if (possibleRoles.indexOf(role) === -1) { |
|
|
message.reply("not a valid role!"); |
|
|
message.reply("not a valid role!"); |
|
|
return; |
|
|
return; |
|
|