From dbc1e5be14ceac97422fffd8cdd2aea861618e47 Mon Sep 17 00:00:00 2001 From: Ralph Date: Sun, 9 Dec 2018 12:53:04 -0500 Subject: [PATCH] Allows for Baserole to be self-assigned --- bot/modules/rolesetter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/modules/rolesetter.js b/bot/modules/rolesetter.js index 53114b3..0ae99e3 100644 --- a/bot/modules/rolesetter.js +++ b/bot/modules/rolesetter.js @@ -20,7 +20,7 @@ exports.addrole = { if (suffix) { //suffix = suffix.toLowerCase(); // Checks if the role mentioned in the message is in the allowed roles listed in the wunderbot config. - if (rolelist.allowedroles.includes(suffix)) { + if (rolelist.allowedroles.includes(suffix) || (baserole == suffix) { // Checks if the role even exists in the discord server if (newrole !== null) { // Checks if the member has the role that they are trying to add