From 19cb935226528858b08f97dc48fe0b82cf730af4 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 1 Apr 2021 22:21:17 -0500 Subject: [PATCH] Fix user role check method --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4e4f3e9..af8121a 100644 --- a/index.js +++ b/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; }