If a user has just 1 report within the last 30 days - verify cannot be completed.
This commit is contained in:
@@ -21,7 +21,7 @@ async function dangercordcheckVerification(userId, accessToken) {
|
||||
return 1; // Allowed to continue
|
||||
} else {
|
||||
// Determine if report level is acceptable
|
||||
if (userData.reports >= 2 && userData.last_reported >= Date.now() - (30 * 24 * 60 * 60 * 1000)) {
|
||||
if (userData.reports >= 1 && userData.last_reported >= Date.now() - (30 * 24 * 60 * 60 * 1000)) {
|
||||
return 0; // Not allowed to continue
|
||||
} else {
|
||||
return 1; // Allowed to continue
|
||||
|
||||
Reference in New Issue
Block a user