mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
Don't mind me
This commit is contained in:
parent
27270a3bad
commit
da9d1a3daf
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ class Collection extends Map {
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
exists(prop, value) {
|
exists(prop, value) {
|
||||||
if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .get(id).');
|
if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .has(id).');
|
||||||
return Boolean(this.find(prop, value));
|
return Boolean(this.find(prop, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue