mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 09:42:22 +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) {
|
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));
|
return Boolean(this.find(prop, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue