Skip to content

Commit

Permalink
🔥 🐛 Remove debug log in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Derpinou committed Apr 3, 2022
1 parent fd94228 commit 5e030c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/src/BaseEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class BaseEvent {
return undefined;
if (auditLogsRequest.audit_log_entries[0].target_id !== targetId)
return undefined;
console.log(1);
if (this.checkUser(options, auditLogsRequest.audit_log_entries[0].user_id))
return undefined;
const member = guild.members.cache.get(auditLogsRequest.audit_log_entries[0].user_id);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-antiraid",
"version": "3.1.2",
"version": "3.1.3",
"description": "Discord.js extention library for protect discord servers against Raids",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/BaseEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export abstract class BaseEvent {
if (!auditLogsRequest) return undefined;

if (auditLogsRequest.audit_log_entries[0].target_id !== targetId) return undefined;
console.log(1);

if (this.checkUser(options, auditLogsRequest.audit_log_entries[0].user_id as string)) return undefined;

Expand All @@ -70,6 +69,7 @@ export abstract class BaseEvent {
return this._manager.removeRoles(guildId, member.id, options.reason);
}
}

return this._manager.addCase(options, member.user.id, member.guild.id, event, startAt, oldCase as Case);
}
}

0 comments on commit 5e030c3

Please sign in to comment.