mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-31 01:11:32 +00:00
Allows for Baserole to be self-assigned
This commit is contained in:
parent
d59bba201f
commit
dbc1e5be14
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue