Browse Source

Fix user role check method

master
Abheek Dhawan 4 years ago
parent
commit
19cb935226
  1. 2
      index.js

2
index.js

@ -128,7 +128,7 @@ async function roleRequest(message) {
message.reply("not a valid role!");
return;
}
if (role === "reader" && message.member.hasRole(readerRole)) {
if (role === "reader" && message.member.roles.cache.has(readerRole)) {
message.reply("you already have that role!");
return;
}

Loading…
Cancel
Save