Skip to content

Commit

Permalink
has --> includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Glazelf committed Nov 15, 2023
1 parent 9945616 commit d1d1833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/owner/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ exports.run = async (client, interaction, logger, globalVars) => {
// Check duplicate user_id
users.forEach(user => {
let checkedUsers = [];
if (checkedUsers.has(user.user_id)) deleted_users.push(user);
if (checkedUsers.includes(user.user_id)) deleted_users.push(user);
checkedUsers.push(user.user_id);
});
//// Check random stuff ??
Expand Down

0 comments on commit d1d1833

Please sign in to comment.