clean my own code

This commit is contained in:
SowinskiBraeden committed 2024-01-22 12:27:33 -08:00
1 parent 4c51956f59
commit 2cd8185c0a
1 file changed
+5 -5
+5 -5
View File
@@ -280,12 +280,12 @@ class LinesPoliceCadBot extends Client {
*/
async verifyUseCommand(serverID, rolesCache, isList) {
let { customRoleStatus } = await this.GetGuild(serverID)
if (customRoleStatus) {
if (!customRoleStatus) return false; // There is no role limits
let hasRole = await this.checkRoleStatus(rolesCache, serverID, isList);
if (hasRole) {
return true // User has role, can use command
} else return false // User does not have role, can't use command
} else return true // There is no role limits
if (!hasRole) return false; // User does not have role
return true; // User has role
}
log(Text) { this.logger.log(Text); }