mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Remove type error from Collection#exists() (#1320)
This commit is contained in:
parent
5334682682
commit
dd3831fa1e
1 changed files with 0 additions and 1 deletions
|
|
@ -210,7 +210,6 @@ class Collection extends Map {
|
|||
* }
|
||||
*/
|
||||
exists(prop, value) {
|
||||
if (prop === 'id') throw new RangeError('Don\'t use .exists() with IDs. Instead, use .has(id).');
|
||||
return Boolean(this.find(prop, value));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue