mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
Remove type error from Collection#exists() (#1320)
This commit is contained in:
committed by
Schuyler Cebulskie
parent
5334682682
commit
dd3831fa1e
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user