Skip to content

Commit

Permalink
fix(Base): Ignore any object checking
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahman1s committed May 30, 2022
1 parent a2b3611 commit da76e48
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/structures/Base.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Client } from '../client/Client.ts';
import { BitField, Collection } from '../util/mod.ts';
import { BitField } from '../util/mod.ts';

type ID = { _id: string } | { id: string } | { _id: { user: string } };

Expand All @@ -19,7 +19,9 @@ export abstract class Base<APIBase extends Partial<ID> = Partial<ID>> {
) {
return false;
}
if (a instanceof Collection) continue;

// TODO: Add collection checking.
if (typeof a === 'object' && a != null) continue;
if (a !== b) return false;
}

Expand Down

0 comments on commit da76e48

Please sign in to comment.