Corrected syntax

This commit is contained in:
Ralph 2018-12-09 14:03:22 -05:00 committed by GitHub
parent f6b92bd28a
commit 67be623b3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) || (baserole == 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