mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 04:52:22 +00:00
Nothing to see here 👀
This commit is contained in:
parent
da9d1a3daf
commit
bb3b709d6e
1 changed files with 1 additions and 1 deletions
|
|
@ -197,7 +197,7 @@ class Collection extends Map {
|
|||
* }
|
||||
*/
|
||||
exists(prop, value) {
|
||||
if (prop === 'id') throw new RangeError('Don\'t use .find() with IDs. Instead, use .has(id).');
|
||||
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